Struct nakadion::auth::FileAccessTokenProvider [−][src]
pub struct FileAccessTokenProvider { /* fields omitted */ }
Expand description
Reads an AccessToken
from a file.
Simply clone it around.
Implementations
Create a new FileAccessTokenProvider
which reads the token from a file
at the given path.
The existence of the file at the given path is not checked.
Create a new FileAccessTokenProvider
which reads the token from a file
at the given path.
The path must be a fully qualified file path contained
in the env var NAKADION_ACCESS_TOKEN_PATH
.
The existence of the file at the given path is not checked.
Create a new FileAccessTokenProvider
which reads the token from a file
at the given path.
The path must be a fully qualified file path contained
in the env var <prefix>_ACCESS_TOKEN_PATH
.
The existence of the file at the given path is not checked.
Trait Implementations
Get a new Token
. Return None
to disable authentication.
Auto Trait Implementations
impl RefUnwindSafe for FileAccessTokenProvider
impl Send for FileAccessTokenProvider
impl Sync for FileAccessTokenProvider
impl Unpin for FileAccessTokenProvider
impl UnwindSafe for FileAccessTokenProvider
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more