pub enum HttpAuthMethod {
Bearer,
ApiKeyHeader,
ApiKeyQuery,
Basic,
Custom(String),
}
Expand description
HTTP authentication methods
Variants§
Bearer
Bearer token in Authorization header
ApiKeyHeader
API key in X-API-Key header
ApiKeyQuery
API key in query parameter
Basic
Basic authentication
Custom(String)
Custom header authentication
Implementations§
Trait Implementations§
Source§impl Clone for HttpAuthMethod
impl Clone for HttpAuthMethod
Source§fn clone(&self) -> HttpAuthMethod
fn clone(&self) -> HttpAuthMethod
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 moreSource§impl Debug for HttpAuthMethod
impl Debug for HttpAuthMethod
Source§impl PartialEq for HttpAuthMethod
impl PartialEq for HttpAuthMethod
impl Eq for HttpAuthMethod
impl StructuralPartialEq for HttpAuthMethod
Auto Trait Implementations§
impl Freeze for HttpAuthMethod
impl RefUnwindSafe for HttpAuthMethod
impl Send for HttpAuthMethod
impl Sync for HttpAuthMethod
impl Unpin for HttpAuthMethod
impl UnwindSafe for HttpAuthMethod
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.