Enum xo_api_client::credentials::Credentials[][src]

pub enum Credentials {
    Password(EmailAndPassword),
    Token(Token),
}
Expand description

Some type of credentials used to authenticate with Xen Orchestra’s API.

A value of this type may ether contain a Token or an EmailAndPassword

Variants

Tuple Fields of Password

0: EmailAndPassword
Token(Token)

Tuple Fields of Token

0: Token

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.