pub enum AuthStyle {
Bearer,
XApiKey {
header: HeaderName,
},
QueryKey {
parameter: String,
},
Custom {
header: HeaderName,
value_prefix: Option<String>,
},
None,
}Expand description
How the generic adapter authenticates a request.
Variants§
Bearer
Authorization: Bearer <key>.
XApiKey
A provider-specific API-key header such as x-api-key.
Fields
§
header: HeaderNameQueryKey
A query parameter such as Gemini’s key=....
Custom
A custom header, optionally with a value prefix such as Token .
None
No authentication. Intended for local gateways and test servers.
Trait Implementations§
impl Eq for AuthStyle
impl StructuralPartialEq for AuthStyle
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
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.