Struct nakadion::auth::AccessTokenProvider [−][src]
pub struct AccessTokenProvider { /* fields omitted */ }
Implementations
Creates a new AccessTokenProvider
from the environment
This will attempt to create the following providers in the given order with all their restrictions as if configured from the environment individually
FileAccessTokenProvider
FixedAccessTokenProvider
NoAuthAccessTokenProvider
- Fail
Creates a new AccessTokenProvider
from the environment
This will attempt to create the following providers in the given order with all their restrictions as if configured from the environment individually
FileAccessTokenProvider
FixedAccessTokenProvider
NoAuthAccessTokenProvider
- Fail
Trait Implementations
Get a new Token
. Return None
to disable authentication.
Auto Trait Implementations
impl !RefUnwindSafe for AccessTokenProvider
impl Send for AccessTokenProvider
impl Sync for AccessTokenProvider
impl Unpin for AccessTokenProvider
impl !UnwindSafe for AccessTokenProvider
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