pub enum AuthHeader {
Bearer(String),
ApiKey(String),
}Expand description
Authentication header configuration
Variants§
Bearer(String)
Bearer token format: “Authorization: Bearer {token}”
ApiKey(String)
Direct API key format: “{header_name}: {api_key}”
Trait Implementations§
Source§impl Clone for AuthHeader
impl Clone for AuthHeader
Source§fn clone(&self) -> AuthHeader
fn clone(&self) -> AuthHeader
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthHeader
impl RefUnwindSafe for AuthHeader
impl Send for AuthHeader
impl Sync for AuthHeader
impl Unpin for AuthHeader
impl UnwindSafe for AuthHeader
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