pub struct StaticApiKey { /* private fields */ }Expand description
Static API-key provider: the token never changes for the lifetime of the client.
Implementations§
Source§impl StaticApiKey
impl StaticApiKey
Trait Implementations§
Source§impl Clone for StaticApiKey
impl Clone for StaticApiKey
Source§fn clone(&self) -> StaticApiKey
fn clone(&self) -> StaticApiKey
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 moreSource§impl Debug for StaticApiKey
impl Debug for StaticApiKey
Source§impl TokenProvider for StaticApiKey
impl TokenProvider for StaticApiKey
Source§fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, SdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StaticApiKey: 'async_trait,
fn token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, SdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StaticApiKey: 'async_trait,
Return the credentials to attach to the next request. May be called on the hot
path, so implementations should cache aggressively.
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