pub struct FormOptions { /* private fields */ }
Expand description
A Filter
to extract a multipart/form-data
body from a request.
Create with the warp::multipart::form()
function.
Implementations
sourceimpl FormOptions
impl FormOptions
sourcepub fn max_length(self, max: u64) -> FormOptions
pub fn max_length(self, max: u64) -> FormOptions
Set the maximum byte length allowed for this body.
Defaults to 2MB.
Trait Implementations
sourceimpl Clone for FormOptions
impl Clone for FormOptions
sourcefn clone(&self) -> FormOptions
fn clone(&self) -> FormOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for FormOptions
impl Send for FormOptions
impl Sync for FormOptions
impl Unpin for FormOptions
impl UnwindSafe for FormOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Filter for T where
T: FilterBase,
impl<T> Filter for T where
T: FilterBase,
sourcefn and<F>(self, other: F) -> And<Self, F> where
F: Filter + Clone,
<Self::Extract as Tuple>::HList: Combine<<<F as FilterBase>::Extract as Tuple>::HList>,
<F as FilterBase>::Error: CombineRejection<Self::Error>,
fn and<F>(self, other: F) -> And<Self, F> where
F: Filter + Clone,
<Self::Extract as Tuple>::HList: Combine<<<F as FilterBase>::Extract as Tuple>::HList>,
<F as FilterBase>::Error: CombineRejection<Self::Error>,
Composes a new Filter
that requires both this and the other to filter a request. Read more
sourcefn or<F>(self, other: F) -> Or<Self, F> where
Self: Filter<Error = Rejection>,
F: Filter,
<F as FilterBase>::Error: CombineRejection<Self::Error>,
fn or<F>(self, other: F) -> Or<Self, F> where
Self: Filter<Error = Rejection>,
F: Filter,
<F as FilterBase>::Error: CombineRejection<Self::Error>,
Composes a new Filter
of either this or the other filter. Read more
sourcefn map<F>(self, fun: F) -> Map<Self, F> where
F: Func<Self::Extract> + Clone,
fn map<F>(self, fun: F) -> Map<Self, F> where
F: Func<Self::Extract> + Clone,
Composes this Filter
with a function receiving the extracted value. Read more
sourcefn then<F>(self, fun: F) -> Then<Self, F> where
F: Func<Self::Extract> + Clone,
<F as Func<Self::Extract>>::Output: Future,
<F as Func<Self::Extract>>::Output: Send,
fn then<F>(self, fun: F) -> Then<Self, F> where
F: Func<Self::Extract> + Clone,
<F as Func<Self::Extract>>::Output: Future,
<F as Func<Self::Extract>>::Output: Send,
Composes this Filter
with an async function receiving
the extracted value. Read more
sourcefn and_then<F>(self, fun: F) -> AndThen<Self, F> where
F: Func<Self::Extract> + Clone,
<F as Func<Self::Extract>>::Output: TryFuture,
<F as Func<Self::Extract>>::Output: Send,
<<F as Func<Self::Extract>>::Output as TryFuture>::Error: CombineRejection<Self::Error>,
fn and_then<F>(self, fun: F) -> AndThen<Self, F> where
F: Func<Self::Extract> + Clone,
<F as Func<Self::Extract>>::Output: TryFuture,
<F as Func<Self::Extract>>::Output: Send,
<<F as Func<Self::Extract>>::Output as TryFuture>::Error: CombineRejection<Self::Error>,
Composes this Filter
with a fallible async function receiving
the extracted value. Read more
sourcefn or_else<F>(self, fun: F) -> OrElse<Self, F> where
Self: Filter<Error = Rejection>,
F: Func<Rejection>,
<F as Func<Rejection>>::Output: TryFuture,
<F as Func<Rejection>>::Output: Send,
<<F as Func<Rejection>>::Output as TryFuture>::Error: IsReject,
<<F as Func<Rejection>>::Output as TryFuture>::Ok == Self::Extract,
fn or_else<F>(self, fun: F) -> OrElse<Self, F> where
Self: Filter<Error = Rejection>,
F: Func<Rejection>,
<F as Func<Rejection>>::Output: TryFuture,
<F as Func<Rejection>>::Output: Send,
<<F as Func<Rejection>>::Output as TryFuture>::Error: IsReject,
<<F as Func<Rejection>>::Output as TryFuture>::Ok == Self::Extract,
Compose this Filter
with a function receiving an error. Read more
sourcefn recover<F>(self, fun: F) -> Recover<Self, F> where
Self: Filter<Error = Rejection>,
F: Func<Rejection>,
<F as Func<Rejection>>::Output: TryFuture,
<F as Func<Rejection>>::Output: Send,
<<F as Func<Rejection>>::Output as TryFuture>::Error: IsReject,
fn recover<F>(self, fun: F) -> Recover<Self, F> where
Self: Filter<Error = Rejection>,
F: Func<Rejection>,
<F as Func<Rejection>>::Output: TryFuture,
<F as Func<Rejection>>::Output: Send,
<<F as Func<Rejection>>::Output as TryFuture>::Error: IsReject,
Compose this Filter
with a function receiving an error and
returning a new type, instead of the same type. Read more
sourcefn unify<T>(self) -> Unify<Self> where
Self: Filter<Extract = (Either<T, T>,)>,
T: Tuple,
fn unify<T>(self) -> Unify<Self> where
Self: Filter<Extract = (Either<T, T>,)>,
T: Tuple,
Unifies the extracted value of Filter
s composed with or
. Read more
sourcefn untuple_one<T>(self) -> UntupleOne<Self> where
Self: Filter<Extract = (T,)>,
T: Tuple,
fn untuple_one<T>(self) -> UntupleOne<Self> where
Self: Filter<Extract = (T,)>,
T: Tuple,
Convenience method to remove one layer of tupling. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more