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
sourceimpl 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
sourceimpl Clone for MultipartOptions
impl Clone for MultipartOptions
sourcefn clone(&self) -> MultipartOptions
fn clone(&self) -> MultipartOptions
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for MultipartOptions
impl Default for MultipartOptions
sourcefn default() -> MultipartOptions
fn default() -> MultipartOptions
Returns the “default value” for a type. Read more
impl Copy for MultipartOptions
Auto Trait Implementations
impl RefUnwindSafe for MultipartOptions
impl Send for MultipartOptions
impl Sync for MultipartOptions
impl Unpin for MultipartOptions
impl UnwindSafe for MultipartOptions
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