pub enum AuthorizationType {
Basic(Credentials),
Token(String),
}Expand description
A struct that represents the type of authorization to use.
Variants§
Basic(Credentials)
Token(String)
Implementations§
Auto Trait Implementations§
impl Freeze for AuthorizationType
impl RefUnwindSafe for AuthorizationType
impl Send for AuthorizationType
impl Sync for AuthorizationType
impl Unpin for AuthorizationType
impl UnwindSafe for AuthorizationType
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