pub struct MultipartFormConfig { /* private fields */ }
Expand description
MultipartForm
extractor configuration.
Implementations
sourceimpl MultipartFormConfig
impl MultipartFormConfig
sourcepub fn total_limit(self, total_limit: usize) -> Self
pub fn total_limit(self, total_limit: usize) -> Self
Set 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
Set maximum accepted data that will be read into memory. By default this limit is 2MiB.
sourcepub fn error_handler<F>(self, f: F) -> Selfwhere
F: Fn(Error, &HttpRequest) -> Error + Send + Sync + 'static,
pub fn error_handler<F>(self, f: F) -> Selfwhere
F: Fn(Error, &HttpRequest) -> Error + Send + Sync + 'static,
Set custom error handler.
Trait Implementations
sourceimpl Clone for MultipartFormConfig
impl Clone for MultipartFormConfig
sourcefn clone(&self) -> MultipartFormConfig
fn clone(&self) -> MultipartFormConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for MultipartFormConfig
impl Send for MultipartFormConfig
impl Sync for MultipartFormConfig
impl Unpin for MultipartFormConfig
impl !UnwindSafe for MultipartFormConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more