Type Alias Credentials

Source
pub type Credentials<'cred, S> = CredentialsSecret<'cred, ProtectedSecret<S>>;

Aliased Type§

pub enum Credentials<'cred, S> {
    Default,
    User(&'cred str, ProtectedSecret<S>),
    Token(ProtectedSecret<S>),
}

Variants§

§

Default

§

User(&'cred str, ProtectedSecret<S>)

§

Token(ProtectedSecret<S>)

Available on crate feature mqc_9_3_4_0 only.

Trait Implementations§

Source§

impl<'cred> From<Option<&'cred (String, String)>> for Credentials<'cred, &'cred str>

Source§

fn from(value: Option<&'cred (String, String)>) -> Self

Converts to this type from the input type.