pub struct ResolvedCredential {
pub secret_access_key: String,
pub session_token: Option<String>,
pub principal: Principal,
}Expand description
Credentials resolved from an access key ID.
Returned by CredentialResolver::resolve. Holds both the secret access
key (needed for SigV4 verification) and the resolved Principal
(needed for IAM enforcement and GetCallerIdentity consolidation).
Fields§
§secret_access_key: String§session_token: Option<String>§principal: PrincipalImplementations§
Source§impl ResolvedCredential
impl ResolvedCredential
Sourcepub fn principal_arn(&self) -> &str
pub fn principal_arn(&self) -> &str
Convenience accessors for the flat fields batch 3 callers use. Kept
as methods rather than re-adding the fields to avoid making the
shape inconsistent with Principal itself.
pub fn user_id(&self) -> &str
pub fn account_id(&self) -> &str
Trait Implementations§
Source§impl Clone for ResolvedCredential
impl Clone for ResolvedCredential
Source§fn clone(&self) -> ResolvedCredential
fn clone(&self) -> ResolvedCredential
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedCredential
impl Debug for ResolvedCredential
Source§impl PartialEq for ResolvedCredential
impl PartialEq for ResolvedCredential
impl Eq for ResolvedCredential
impl StructuralPartialEq for ResolvedCredential
Auto Trait Implementations§
impl Freeze for ResolvedCredential
impl RefUnwindSafe for ResolvedCredential
impl Send for ResolvedCredential
impl Sync for ResolvedCredential
impl Unpin for ResolvedCredential
impl UnsafeUnpin for ResolvedCredential
impl UnwindSafe for ResolvedCredential
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