pub enum Unverified {
UsernameAndPassword {
username: String,
password: Secret<String>,
},
NoCredentials,
}Expand description
A set of credentials supplied that has not been verified.
Variants§
UsernameAndPassword
A set of username and password credentials.
NoCredentials
No credentials were given.
Implementations§
Source§impl Unverified
impl Unverified
Sourcepub fn is_no_credentials(&self) -> bool
pub fn is_no_credentials(&self) -> bool
Returns whether or not this set of unverified credentials is actually no credentials at all.
Trait Implementations§
Source§impl Debug for Unverified
impl Debug for Unverified
Source§impl<S> FromRequestParts<S> for Unverified
impl<S> FromRequestParts<S> for Unverified
Source§type Rejection = StatusCode
type Rejection = StatusCode
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl Freeze for Unverified
impl RefUnwindSafe for Unverified
impl Send for Unverified
impl Sync for Unverified
impl Unpin for Unverified
impl UnwindSafe for Unverified
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
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.