#[non_exhaustive]pub enum PasswordClient {
Basic(BasicClient),
Digest(DigestClient),
}Expand description
Client for responding to a password challenge.
Typically created via TryFrom implementations for a parsed challenge
(crate::ChallengeRef) or unparsed challenges (str,
http::header::HeaderValue, or http::header::GetAll). See full
example in the crate-level documentation.
For more complex scenarios, see PasswordClientBuilder.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Basic(BasicClient)
basic-scheme only.Digest(DigestClient)
digest-scheme only.Implementations§
Source§impl PasswordClient
impl PasswordClient
Sourcepub fn builder() -> PasswordClientBuilder
pub fn builder() -> PasswordClientBuilder
Builds a new PasswordClient.
See example at PasswordClientBuilder.
Trait Implementations§
Source§impl Debug for PasswordClient
impl Debug for PasswordClient
impl Eq for PasswordClient
Source§impl PartialEq for PasswordClient
impl PartialEq for PasswordClient
impl StructuralPartialEq for PasswordClient
Source§impl TryFrom<&ChallengeRef<'_>> for PasswordClient
Tries to create a PasswordClient from the single supplied challenge.
impl TryFrom<&ChallengeRef<'_>> for PasswordClient
Tries to create a PasswordClient from the single supplied challenge.
This is a convenience wrapper around PasswordClientBuilder.
Source§impl TryFrom<&HeaderValue> for PasswordClient
Available on crate feature http only.Tries to create a PasswordClient from the supplied HeaderValue challenge list.
impl TryFrom<&HeaderValue> for PasswordClient
http only.Tries to create a PasswordClient from the supplied HeaderValue challenge list.
This is a convenience wrapper around PasswordClientBuilder.
Source§impl TryFrom<&HeaderValue> for PasswordClient
Available on crate feature http10 only.Tries to create a PasswordClient from the supplied HeaderValue challenge list.
impl TryFrom<&HeaderValue> for PasswordClient
http10 only.Tries to create a PasswordClient from the supplied HeaderValue challenge list.
This is a convenience wrapper around PasswordClientBuilder.
Source§impl TryFrom<&str> for PasswordClient
Tries to create a PasswordClient from the supplied str challenge list.
impl TryFrom<&str> for PasswordClient
Tries to create a PasswordClient from the supplied str challenge list.
This is a convenience wrapper around PasswordClientBuilder.
Source§impl TryFrom<GetAll<'_, HeaderValue>> for PasswordClient
Available on crate feature http only.Tries to create a PasswordClient from the supplied http::header::GetAll challenge lists.
impl TryFrom<GetAll<'_, HeaderValue>> for PasswordClient
http only.Tries to create a PasswordClient from the supplied http::header::GetAll challenge lists.
This is a convenience wrapper around PasswordClientBuilder.
Source§impl TryFrom<GetAll<'_, HeaderValue>> for PasswordClient
Available on crate feature http10 only.Tries to create a PasswordClient from the supplied http::header::GetAll challenge lists.
impl TryFrom<GetAll<'_, HeaderValue>> for PasswordClient
http10 only.Tries to create a PasswordClient from the supplied http::header::GetAll challenge lists.
This is a convenience wrapper around PasswordClientBuilder.