Struct actix_multipart::form::MultipartFormConfig
source · 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