Enum ajars_surf::surf::http::auth::AuthenticationScheme
[−]#[non_exhaustive]
pub enum AuthenticationScheme {
Basic,
Bearer,
Digest,
Hoba,
Mutual,
Negotiate,
OAuth,
ScramSha1,
ScramSha256,
Vapid,
}
Expand description
HTTP Mutual Authentication Algorithms
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Basic
RFC7617 Basic auth
Bearer
RFC6750 Bearer auth
Digest
RFC7616 Digest auth
Hoba
RFC7486 HTTP Origin-Bound Authentication (HOBA)
Mutual
RFC8120 Mutual auth
Negotiate
RFC4559 Negotiate auth
OAuth
RFC5849 OAuth
ScramSha1
RFC7804 SCRAM SHA1 auth
ScramSha256
RFC7804 SCRAM SHA256 auth
Vapid
RFC8292 Vapid auth
Trait Implementations
impl Clone for AuthenticationScheme
impl Clone for AuthenticationScheme
fn clone(&self) -> AuthenticationScheme
fn clone(&self) -> AuthenticationScheme
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
impl Debug for AuthenticationScheme
impl Debug for AuthenticationScheme
impl Display for AuthenticationScheme
impl Display for AuthenticationScheme
impl FromStr for AuthenticationScheme
impl FromStr for AuthenticationScheme
fn from_str(
s: &str
) -> Result<AuthenticationScheme, <AuthenticationScheme as FromStr>::Err>
fn from_str(
s: &str
) -> Result<AuthenticationScheme, <AuthenticationScheme as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
impl Copy for AuthenticationScheme
impl Eq for AuthenticationScheme
impl StructuralEq for AuthenticationScheme
impl StructuralPartialEq for AuthenticationScheme
Auto Trait Implementations
impl RefUnwindSafe for AuthenticationScheme
impl Send for AuthenticationScheme
impl Sync for AuthenticationScheme
impl Unpin for AuthenticationScheme
impl UnwindSafe for AuthenticationScheme
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> 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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more