pub struct StaticApiKey(pub SecretString);Expand description
Static API key — most common case.
Tuple Fields§
§0: SecretStringTrait Implementations§
Source§impl CredentialProvider for StaticApiKey
impl CredentialProvider for StaticApiKey
fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = InferenceResult<SecretString>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for StaticApiKey
impl RefUnwindSafe for StaticApiKey
impl Send for StaticApiKey
impl Sync for StaticApiKey
impl Unpin for StaticApiKey
impl UnsafeUnpin for StaticApiKey
impl UnwindSafe for StaticApiKey
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