pub enum Credentials {
Basic(String),
Bearer(String),
}Variants§
Implementations§
Trait Implementations§
Source§impl Debug for Credentials
impl Debug for Credentials
impl Eq for Credentials
Source§impl From<&str> for Credentials
impl From<&str> for Credentials
Source§impl From<String> for Credentials
impl From<String> for Credentials
Source§impl PartialEq for Credentials
impl PartialEq for Credentials
Source§fn eq(&self, other: &Credentials) -> bool
fn eq(&self, other: &Credentials) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin 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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.