pub enum AuthStrategy {
None,
Literal,
Secret,
Unknown,
}Expand description
How a provider authenticates API requests.
Variants§
None
No authentication required (e.g. local Ollama).
Literal
Hardcoded token in the catalog (e.g. a free-tier key).
Secret
Read secret from environment variable.
Unknown
Unknown authentication mode.
Trait Implementations§
Source§impl Clone for AuthStrategy
impl Clone for AuthStrategy
Source§fn clone(&self) -> AuthStrategy
fn clone(&self) -> AuthStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AuthStrategy
Source§impl Debug for AuthStrategy
impl Debug for AuthStrategy
impl Eq for AuthStrategy
Source§impl PartialEq for AuthStrategy
impl PartialEq for AuthStrategy
Source§fn eq(&self, other: &AuthStrategy) -> bool
fn eq(&self, other: &AuthStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthStrategy
Auto Trait Implementations§
impl Freeze for AuthStrategy
impl RefUnwindSafe for AuthStrategy
impl Send for AuthStrategy
impl Sync for AuthStrategy
impl Unpin for AuthStrategy
impl UnsafeUnpin for AuthStrategy
impl UnwindSafe for AuthStrategy
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