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