Struct aws_sdk_codecatalyst::config::Token
source · pub struct Token(/* private fields */);
Expand description
Identity type required to sign requests using Smithy’s token-based HTTP auth schemes
This Token
type is used with Smithy’s @httpApiKeyAuth
and @httpBearerAuth
auth traits.
Implementations§
source§impl Token
impl Token
sourcepub fn new(token: impl Into<String>, expiration: Option<SystemTime>) -> Token
pub fn new(token: impl Into<String>, expiration: Option<SystemTime>) -> Token
Constructs a new identity token for HTTP auth.
sourcepub fn expiration(&self) -> Option<SystemTime>
pub fn expiration(&self) -> Option<SystemTime>
Returns the expiration time (if any) for this token.
Trait Implementations§
source§impl PartialEq for Token
impl PartialEq for Token
source§impl ProvideToken for Token
impl ProvideToken for Token
source§fn provide_token<'a>(&'a self) -> ProvideToken<'a>where
Token: 'a,
fn provide_token<'a>(&'a self) -> ProvideToken<'a>where
Token: 'a,
Returns a future that provides an access token.
source§impl ResolveIdentity for Token
impl ResolveIdentity for Token
source§fn resolve_identity<'a>(
&'a self,
_runtime_components: &'a RuntimeComponents,
_config_bag: &'a ConfigBag
) -> IdentityFuture<'a>
fn resolve_identity<'a>( &'a self, _runtime_components: &'a RuntimeComponents, _config_bag: &'a ConfigBag ) -> IdentityFuture<'a>
Asynchronously resolves an identity for a request using the given config.
source§fn cache_location(&self) -> IdentityCacheLocation
fn cache_location(&self) -> IdentityCacheLocation
Returns the location of an identity cache associated with this identity resolver. Read more
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.