Struct nakadion::auth::FixedAccessTokenProvider [−][src]
pub struct FixedAccessTokenProvider { /* fields omitted */ }
Expand description
Always returns the same token.
Simply clone it around.
Implementations
Create a new FixedAccessTokenProvider
initializes the token with the
the value of the given env var NAKADION_ACCESS_TOKEN_FIXED
.
Create a new FixedAccessTokenProvider
initializes the token with the
the value of the given env var <prefix>_ACCESS_TOKEN_FIXED
.
Trait Implementations
Get a new Token
. Return None
to disable authentication.
Auto Trait Implementations
impl RefUnwindSafe for FixedAccessTokenProvider
impl Send for FixedAccessTokenProvider
impl Sync for FixedAccessTokenProvider
impl Unpin for FixedAccessTokenProvider
impl UnwindSafe for FixedAccessTokenProvider
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