mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-01 07:51:52 +02:00
add doc string
This commit is contained in:
@@ -85,6 +85,7 @@ pub struct JsonBody<S, T: DeserializeOwned>{
|
||||
|
||||
impl<S, T: DeserializeOwned> JsonBody<S, T> {
|
||||
|
||||
/// Create `JsonBody` for request.
|
||||
pub fn from_request(req: &mut HttpRequest<S>) -> Self {
|
||||
JsonBody{
|
||||
limit: 262_144,
|
||||
|
Reference in New Issue
Block a user