pub struct Principal {
pub arn: String,
pub user_id: String,
pub account_id: String,
pub principal_type: PrincipalType,
pub source_identity: Option<String>,
}Expand description
Identity of the caller making a request, once its credentials have been
resolved. Attached to crate::service::AwsRequest::principal so
handlers can make identity-based decisions without re-parsing the
Authorization header.
account_id is always sourced from the credential itself (via
CredentialResolver), never from global config — #381 note.
Fields§
§arn: String§user_id: String§account_id: String§principal_type: PrincipalType§source_identity: Option<String>Optional source identity string, carried through from
AssumeRole’s SourceIdentity parameter. Reserved for later
batches that wire session policies and auditing.
Implementations§
Trait Implementations§
impl Eq for Principal
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnsafeUnpin for Principal
impl UnwindSafe for Principal
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