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
sourceimpl<'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
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
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.