Struct async_graphql::http::MultipartOptions [−][src]
#[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
Set maximum file size.
Set maximum number of files.
Trait Implementations
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more