pub enum ArgPart {
Ignore,
Header(TypeSchema),
Cookie(TypeSchema),
Query(TypeSchema),
Path(TypeSchema),
Body(TypeSchema, Cow<'static, str>),
Security {
scheme: Cow<'static, str>,
scopes: Vec<Cow<'static, str>>,
join_all: bool,
},
Zone,
}Expand description
Describes how a handler argument is extracted from requests.
Variants§
Ignore
Header(TypeSchema)
Extracted from HTTP headers
Cookie(TypeSchema)
Extracted from HTTP cookies
Query(TypeSchema)
Extracted from query string parameters
Path(TypeSchema)
Extracted from URL path parameters
Body(TypeSchema, Cow<'static, str>)
Extracted from request body with specified content type
Security
Security credentials (API key, OAuth token, etc.)
Zone
Multi-tenancy zone identifier
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgPart
impl RefUnwindSafe for ArgPart
impl Send for ArgPart
impl Sync for ArgPart
impl Unpin for ArgPart
impl UnsafeUnpin for ArgPart
impl UnwindSafe for ArgPart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more