Skip to main content

OAuthTokens

Trait OAuthTokens 

Source
pub trait OAuthTokens: Send + Sync {
    // Required method
    fn access_token(&self) -> Result<SecretString, FleetError>;
}
Expand description

Where the OAuth token lives (the operator secret store).

Required Methods§

Source

fn access_token(&self) -> Result<SecretString, FleetError>

The current access token.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§