pub struct Login(/* private fields */);
Available on crate features
client
and http-auth
only.Expand description
Identity type required to sign requests using Smithy’s login-based HTTP auth schemes
This Login
type is used with Smithy’s @httpBasicAuth
and @httpDigestAuth
auth traits.
Implementations§
Source§impl Login
impl Login
Sourcepub fn new(
user: impl Into<String>,
password: impl Into<String>,
expiration: Option<SystemTime>,
) -> Self
pub fn new( user: impl Into<String>, password: impl Into<String>, expiration: Option<SystemTime>, ) -> Self
Constructs a new identity login for HTTP auth.
Sourcepub fn expiration(&self) -> Option<SystemTime>
pub fn expiration(&self) -> Option<SystemTime>
Returns the expiration time of this login (if any)
Trait Implementations§
Source§impl ResolveIdentity for Login
impl ResolveIdentity for Login
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
Source§fn cache_partition(&self) -> Option<IdentityCachePartition>
fn cache_partition(&self) -> Option<IdentityCachePartition>
Returns the identity cache partition associated with this identity resolver. Read more
impl Eq for Login
impl StructuralPartialEq for Login
Auto Trait Implementations§
impl Freeze for Login
impl RefUnwindSafe for Login
impl Send for Login
impl Sync for Login
impl Unpin for Login
impl UnwindSafe for Login
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.