pub enum AuthStyle {
Bearer,
XApiKey,
Custom(String),
}Expand description
How the provider expects the API key to be sent.
Variants§
Bearer
Authorization: Bearer <key>
XApiKey
x-api-key: <key> (used by some Chinese providers)
Custom(String)
Custom header name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthStyle
impl RefUnwindSafe for AuthStyle
impl Send for AuthStyle
impl Sync for AuthStyle
impl Unpin for AuthStyle
impl UnsafeUnpin for AuthStyle
impl UnwindSafe for AuthStyle
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