[][src]Struct actix_web::dev::PayloadConfig

pub struct PayloadConfig { /* fields omitted */ }

Payload configuration for request's payload.

Methods

impl PayloadConfig[src]

pub fn limit(&mut self, limit: usize) -> &mut Self[src]

Change max size of payload. By default max size is 256Kb

pub fn mimetype(&mut self, mt: Mime) -> &mut Self[src]

Set required mime-type of the request. By default mime type is not enforced.

Trait Implementations

impl Default for PayloadConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T