pub enum SetPassword {
NewPassword(PlainText<String>),
}Variants§
Trait Implementations§
Source§impl<'__request> ApiExtractor<'__request> for SetPassword
impl<'__request> ApiExtractor<'__request> for SetPassword
Source§const TYPES: &'static [ApiExtractorType]
const TYPES: &'static [ApiExtractorType]
The type of API extractor.
Source§type ParamRawType = ()
type ParamRawType = ()
The raw parameter type for validators.
Source§fn request_meta() -> Option<MetaRequest>
fn request_meta() -> Option<MetaRequest>
Returns
MetaRequest if this extractor is request object.Source§async fn from_request(
request: &'__request Request,
body: &mut RequestBody,
_param_opts: ExtractParamOptions<Self::ParamType>,
) -> Result<Self>
async fn from_request( request: &'__request Request, body: &mut RequestBody, _param_opts: ExtractParamOptions<Self::ParamType>, ) -> Result<Self>
Parse from the HTTP request.
Source§const PARAM_IS_REQUIRED: bool = false
const PARAM_IS_REQUIRED: bool = false
If it is
true, it means that this parameter is required.Source§fn security_schemes() -> Vec<&'static str>
fn security_schemes() -> Vec<&'static str>
Returns names of security scheme if this extractor is security scheme.
Source§fn has_security_fallback() -> bool
fn has_security_fallback() -> bool
Returns
true if the extractor is a security scheme with a fallback.Source§fn param_in() -> Option<MetaParamIn>
fn param_in() -> Option<MetaParamIn>
Returns the location of the parameter if this extractor is parameter.
Source§fn param_schema_ref() -> Option<MetaSchemaRef>
fn param_schema_ref() -> Option<MetaSchemaRef>
Returns the schema of the parameter if this extractor is parameter.
Source§fn param_raw_type(&self) -> Option<&Self::ParamRawType>
fn param_raw_type(&self) -> Option<&Self::ParamRawType>
Returns a reference to the raw type of this parameter.
Auto Trait Implementations§
impl Freeze for SetPassword
impl RefUnwindSafe for SetPassword
impl Send for SetPassword
impl Sync for SetPassword
impl Unpin for SetPassword
impl UnwindSafe for SetPassword
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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