pub struct MultipartFormConfig { /* private fields */ }Expand description
MultipartForm extractor configuration.
Add to your app data to have it picked up by MultipartForm extractors.
Implementations§
Source§impl MultipartFormConfig
 
impl MultipartFormConfig
Sourcepub fn total_limit(self, total_limit: usize) -> Self
 
pub fn total_limit(self, total_limit: usize) -> Self
Sets maximum accepted payload size for the entire form. By default this limit is 50MiB.
Sourcepub fn memory_limit(self, memory_limit: usize) -> Self
 
pub fn memory_limit(self, memory_limit: usize) -> Self
Sets maximum accepted data that will be read into memory. By default this limit is 2MiB.
Sourcepub fn error_handler<F>(self, f: F) -> Self
 
pub fn error_handler<F>(self, f: F) -> Self
Sets custom error handler.
Trait Implementations§
Source§impl Clone for MultipartFormConfig
 
impl Clone for MultipartFormConfig
Source§fn clone(&self) -> MultipartFormConfig
 
fn clone(&self) -> MultipartFormConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl Freeze for MultipartFormConfig
impl !RefUnwindSafe for MultipartFormConfig
impl Send for MultipartFormConfig
impl Sync for MultipartFormConfig
impl Unpin for MultipartFormConfig
impl !UnwindSafe for MultipartFormConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more