pub enum AuthHeaderFormat {
Bearer,
ApiKey(String),
None,
}Expand description
How the API key is sent in the HTTP request.
Variants§
Bearer
Bearer token: Authorization: Bearer <key>
ApiKey(String)
Custom header: e.g., X-Api-Key: <key>
None
No authentication required.
Trait Implementations§
Source§impl Clone for AuthHeaderFormat
impl Clone for AuthHeaderFormat
Source§fn clone(&self) -> AuthHeaderFormat
fn clone(&self) -> AuthHeaderFormat
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 AuthHeaderFormat
impl Debug for AuthHeaderFormat
Source§impl Default for AuthHeaderFormat
impl Default for AuthHeaderFormat
Source§fn default() -> AuthHeaderFormat
fn default() -> AuthHeaderFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthHeaderFormat
impl<'de> Deserialize<'de> for AuthHeaderFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthHeaderFormat
impl RefUnwindSafe for AuthHeaderFormat
impl Send for AuthHeaderFormat
impl Sync for AuthHeaderFormat
impl Unpin for AuthHeaderFormat
impl UnsafeUnpin for AuthHeaderFormat
impl UnwindSafe for AuthHeaderFormat
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