aws_smithy_runtime/client/identity/
no_auth.rsuse aws_smithy_runtime_api::client::identity::{Identity, IdentityFuture, ResolveIdentity};
use aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
use aws_smithy_types::config_bag::ConfigBag;
#[derive(Debug, Default)]
pub struct NoAuthIdentity;
impl NoAuthIdentity {
pub fn new() -> Self {
Self
}
}
#[derive(Debug, Default)]
pub struct NoAuthIdentityResolver;
impl NoAuthIdentityResolver {
pub fn new() -> Self {
Self
}
}
impl ResolveIdentity for NoAuthIdentityResolver {
fn resolve_identity<'a>(
&'a self,
_runtime_components: &'a RuntimeComponents,
_: &'a ConfigBag,
) -> IdentityFuture<'a> {
IdentityFuture::ready(Ok(Identity::new(NoAuthIdentity::new(), None)))
}
}