pub struct MultipartConfig { /* private fields */ }Expand description
Configuration for multipart parsing.
Implementations§
Source§impl MultipartConfig
impl MultipartConfig
Sourcepub fn max_file_size(self, size: usize) -> Self
pub fn max_file_size(self, size: usize) -> Self
Set the maximum file size.
Sourcepub fn max_total_size(self, size: usize) -> Self
pub fn max_total_size(self, size: usize) -> Self
Set the maximum total upload size.
Sourcepub fn max_fields(self, count: usize) -> Self
pub fn max_fields(self, count: usize) -> Self
Set the maximum number of fields.
Sourcepub fn get_max_file_size(&self) -> usize
pub fn get_max_file_size(&self) -> usize
Get the maximum file size.
Sourcepub fn get_max_total_size(&self) -> usize
pub fn get_max_total_size(&self) -> usize
Get the maximum total upload size.
Sourcepub fn get_max_fields(&self) -> usize
pub fn get_max_fields(&self) -> usize
Get the maximum number of fields.
Trait Implementations§
Source§impl Clone for MultipartConfig
impl Clone for MultipartConfig
Source§fn clone(&self) -> MultipartConfig
fn clone(&self) -> MultipartConfig
Returns a duplicate 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 moreSource§impl Debug for MultipartConfig
impl Debug for MultipartConfig
Auto Trait Implementations§
impl Freeze for MultipartConfig
impl RefUnwindSafe for MultipartConfig
impl Send for MultipartConfig
impl Sync for MultipartConfig
impl Unpin for MultipartConfig
impl UnwindSafe for MultipartConfig
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).