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§
Password(EmailAndPassword)
Token(Token)
Trait Implementations§
Source§impl From<Credentials> for BTreeMap<&str, JsonValue>
impl From<Credentials> for BTreeMap<&str, JsonValue>
Source§fn from(credentials: Credentials) -> Self
fn from(credentials: Credentials) -> Self
Converts to this type from the input type.
Source§impl From<EmailAndPassword> for Credentials
impl From<EmailAndPassword> for Credentials
Source§fn from(val: EmailAndPassword) -> Self
fn from(val: EmailAndPassword) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more