pub enum AuthorizationValue {
Bearer(String),
Token(String),
Basic {
username: String,
password: String,
},
}Expand description
Authorization header value.
Variants§
Bearer(String)
Bearer token.
Token(String)
Token (GitHub-style).
Basic
Basic auth (username:password).
Implementations§
Trait Implementations§
Source§impl Clone for AuthorizationValue
impl Clone for AuthorizationValue
Source§fn clone(&self) -> AuthorizationValue
fn clone(&self) -> AuthorizationValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthorizationValue
impl RefUnwindSafe for AuthorizationValue
impl Send for AuthorizationValue
impl Sync for AuthorizationValue
impl Unpin for AuthorizationValue
impl UnsafeUnpin for AuthorizationValue
impl UnwindSafe for AuthorizationValue
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