pub struct MultipartConfig { /* private fields */ }Expand description
Configuration for MultipartPlugin.
Implementations§
Source§impl MultipartConfig
Fluent builder methods for MultipartConfig.
impl MultipartConfig
Fluent builder methods for MultipartConfig.
Sourcepub fn with_max_total_bytes(self, bytes: usize) -> Self
pub fn with_max_total_bytes(self, bytes: usize) -> Self
Sourcepub fn with_max_file_bytes(self, bytes: usize) -> Self
pub fn with_max_file_bytes(self, bytes: usize) -> Self
Sourcepub fn with_max_files(self, files: usize) -> Self
pub fn with_max_files(self, files: usize) -> Self
Sourcepub fn with_allowed_mime_prefixes<I, S>(self, prefixes: I) -> Self
pub fn with_allowed_mime_prefixes<I, S>(self, prefixes: I) -> Self
Source§impl MultipartConfig
impl MultipartConfig
pub fn get_max_total_bytes(&self) -> usize
pub fn get_mut_max_total_bytes(&mut self) -> &mut usize
pub fn set_max_total_bytes(&mut self, val: usize) -> &mut Self
pub fn get_max_parts(&self) -> usize
pub fn get_mut_max_parts(&mut self) -> &mut usize
pub fn set_max_parts(&mut self, val: usize) -> &mut Self
pub fn get_max_files(&self) -> usize
pub fn get_mut_max_files(&mut self) -> &mut usize
pub fn set_max_files(&mut self, val: usize) -> &mut Self
pub fn get_max_file_bytes(&self) -> usize
pub fn get_mut_max_file_bytes(&mut self) -> &mut usize
pub fn set_max_file_bytes(&mut self, val: usize) -> &mut Self
pub fn get_max_field_bytes(&self) -> usize
pub fn get_mut_max_field_bytes(&mut self) -> &mut usize
pub fn set_max_field_bytes(&mut self, val: usize) -> &mut Self
pub fn get_allowed_mime_prefixes(&self) -> &Vec<String>
pub fn get_mut_allowed_mime_prefixes(&mut self) -> &mut Vec<String>
pub fn set_allowed_mime_prefixes(&mut self, val: Vec<String>) -> &mut Self
pub fn get_sniff_mime(&self) -> bool
pub fn get_mut_sniff_mime(&mut self) -> &mut bool
pub fn set_sniff_mime(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for MultipartConfig
impl Clone for MultipartConfig
Source§impl Debug for MultipartConfig
impl Debug for MultipartConfig
Source§impl Default for MultipartConfig
Default construction for MultipartConfig.
impl Default for MultipartConfig
Default construction for MultipartConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a safe default MultipartConfig with 10 MiB total cap and magic-byte sniffing enabled.
§Returns
Self- Default configuration.
impl Eq for MultipartConfig
Source§impl PartialEq for MultipartConfig
impl PartialEq for MultipartConfig
impl StructuralPartialEq for MultipartConfig
Auto Trait Implementations§
impl Forget for MultipartConfig
impl Freeze for MultipartConfig
impl Move for MultipartConfig
impl RefUnwindSafe for MultipartConfig
impl Send for MultipartConfigwhere
RawVecInner: Send,
impl Sync for MultipartConfigwhere
RawVecInner: Sync,
impl Unpin for MultipartConfig
impl UnsafeUnpin for MultipartConfig
impl UnwindSafe for MultipartConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.