Struct async_graphql::http::MultipartOptions
source · #[non_exhaustive]pub struct MultipartOptions {
pub max_file_size: Option<usize>,
pub max_num_files: Option<usize>,
}
Expand description
Options for receive_multipart
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_file_size: Option<usize>
The maximum file size.
max_num_files: Option<usize>
The maximum number of files.
Implementations§
source§impl MultipartOptions
impl MultipartOptions
sourcepub fn max_file_size(self, size: usize) -> Self
pub fn max_file_size(self, size: usize) -> Self
Set maximum file size.
sourcepub fn max_num_files(self, n: usize) -> Self
pub fn max_num_files(self, n: usize) -> Self
Set maximum number of files.
Trait Implementations§
source§impl Clone for MultipartOptions
impl Clone for MultipartOptions
source§fn clone(&self) -> MultipartOptions
fn clone(&self) -> MultipartOptions
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 moresource§impl Default for MultipartOptions
impl Default for MultipartOptions
source§fn default() -> MultipartOptions
fn default() -> MultipartOptions
Returns the “default value” for a type. Read more
impl Copy for MultipartOptions
Auto Trait Implementations§
impl Freeze for MultipartOptions
impl RefUnwindSafe for MultipartOptions
impl Send for MultipartOptions
impl Sync for MultipartOptions
impl Unpin for MultipartOptions
impl UnwindSafe for MultipartOptions
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)