Enum http_auth::PasswordClient [−][src]
#[non_exhaustive]
pub enum PasswordClient {
Basic(BasicClient),
Digest(DigestClient),
}
Expand description
Client for responding to a password challenge.
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(BasicClient)
This is supported on crate feature
basic-scheme
only.Tuple Fields of Basic
0: BasicClient
Digest(DigestClient)
This is supported on crate feature
digest-scheme
only.Tuple Fields of Digest
0: DigestClient
Implementations
Builds a new PasswordClient
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Tries to create a PasswordClient
from the single supplied challenge.
This is a convenience wrapper around PasswordClientBuilder
.
Tries to create a PasswordClient
from the supplied HeaderValue
challenge list.
This is a convenience wrapper around PasswordClientBuilder
.
Tries to create a PasswordClient
forom the supplied str
challenge list.
This is a convenience wrapper around PasswordClientBuilder
.
impl TryFrom<GetAll<'_, HeaderValue>> for PasswordClient
This is supported on crate feature http
only.
impl TryFrom<GetAll<'_, HeaderValue>> for PasswordClient
This is supported on crate feature
http
only.Tries to create a PasswordClient
from the supplied http::header::GetAll
challenge lists.
This is a convenience wrapper around PasswordClientBuilder
.