pub enum AuthenticationScheme {
Basic,
Bearer,
Digest,
Mutual,
Negotiate,
ApiKey,
Custom,
}Expand description
HTTP or application authentication scheme labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AuthenticationScheme
impl Clone for AuthenticationScheme
Source§fn clone(&self) -> AuthenticationScheme
fn clone(&self) -> AuthenticationScheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticationScheme
impl Debug for AuthenticationScheme
Source§impl Display for AuthenticationScheme
impl Display for AuthenticationScheme
Source§impl FromStr for AuthenticationScheme
impl FromStr for AuthenticationScheme
Source§type Err = AuthnParseError
type Err = AuthnParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<AuthenticationScheme, <AuthenticationScheme as FromStr>::Err>
fn from_str( input: &str, ) -> Result<AuthenticationScheme, <AuthenticationScheme as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for AuthenticationScheme
impl Hash for AuthenticationScheme
Source§impl Ord for AuthenticationScheme
impl Ord for AuthenticationScheme
Source§fn cmp(&self, other: &AuthenticationScheme) -> Ordering
fn cmp(&self, other: &AuthenticationScheme) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AuthenticationScheme
impl PartialEq for AuthenticationScheme
Source§fn eq(&self, other: &AuthenticationScheme) -> bool
fn eq(&self, other: &AuthenticationScheme) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AuthenticationScheme
impl PartialOrd for AuthenticationScheme
impl Copy for AuthenticationScheme
impl Eq for AuthenticationScheme
impl StructuralPartialEq for AuthenticationScheme
Auto Trait Implementations§
impl Freeze for AuthenticationScheme
impl RefUnwindSafe for AuthenticationScheme
impl Send for AuthenticationScheme
impl Sync for AuthenticationScheme
impl Unpin for AuthenticationScheme
impl UnsafeUnpin for AuthenticationScheme
impl UnwindSafe for AuthenticationScheme
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