pub struct MultipartFormDataOptions<'a> {
pub temporary_dir: PathBuf,
pub allowed_fields: Vec<MultipartFormDataField<'a>>,
}
Expand description
Options for parsing multipart/form-data.
Fields§
§temporary_dir: PathBuf
A path of directory where the uploaded files will be stored.
allowed_fields: Vec<MultipartFormDataField<'a>>
Allowed fields of data.
Implementations§
source§impl<'a> MultipartFormDataOptions<'a>
impl<'a> MultipartFormDataOptions<'a>
sourcepub fn new() -> MultipartFormDataOptions<'a>
pub fn new() -> MultipartFormDataOptions<'a>
Create a default MultipartFormDataOptions
instance.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MultipartFormDataOptions<'a>
impl<'a> Send for MultipartFormDataOptions<'a>
impl<'a> Sync for MultipartFormDataOptions<'a>
impl<'a> Unpin for MultipartFormDataOptions<'a>
impl<'a> UnwindSafe for MultipartFormDataOptions<'a>
Blanket Implementations§
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.