pub enum PrincipalIdentity {
AssumedRole(AssumedRole),
CanonicalUser(CanonicalUser),
FederatedUser(FederatedUser),
RootUser(RootUser),
Service(Service),
User(User),
}
Expand description
A principal identity that is the source of an action in an AWS (or AWS-like) service.
Variants
AssumedRole(AssumedRole)
Details for an assumed role.
CanonicalUser(CanonicalUser)
Details for an S3 canonical user.
FederatedUser(FederatedUser)
Details for a federated user.
RootUser(RootUser)
Details for the root user of an account.
Service(Service)
Details for a service.
User(User)
Details for an IAM user.
Implementations
Trait Implementations
sourceimpl Clone for PrincipalIdentity
impl Clone for PrincipalIdentity
sourcefn clone(&self) -> PrincipalIdentity
fn clone(&self) -> PrincipalIdentity
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PrincipalIdentity
impl Debug for PrincipalIdentity
sourceimpl Display for PrincipalIdentity
impl Display for PrincipalIdentity
sourceimpl From<AssumedRole> for PrincipalIdentity
impl From<AssumedRole> for PrincipalIdentity
sourcefn from(assumed_role: AssumedRole) -> Self
fn from(assumed_role: AssumedRole) -> Self
Wrap an AssumedRole in a Principal.
sourceimpl From<CanonicalUser> for PrincipalIdentity
impl From<CanonicalUser> for PrincipalIdentity
sourcefn from(canonical_user: CanonicalUser) -> Self
fn from(canonical_user: CanonicalUser) -> Self
Wrap a CanonicalUser in a Principal.
sourceimpl From<FederatedUser> for PrincipalIdentity
impl From<FederatedUser> for PrincipalIdentity
sourcefn from(federated_user: FederatedUser) -> Self
fn from(federated_user: FederatedUser) -> Self
Wrap a FederatedUser in a Principal.
sourceimpl From<RootUser> for PrincipalIdentity
impl From<RootUser> for PrincipalIdentity
sourceimpl From<Service> for PrincipalIdentity
impl From<Service> for PrincipalIdentity
sourceimpl From<User> for PrincipalIdentity
impl From<User> for PrincipalIdentity
sourceimpl Hash for PrincipalIdentity
impl Hash for PrincipalIdentity
sourceimpl Ord for PrincipalIdentity
impl Ord for PrincipalIdentity
sourcefn cmp(&self, other: &PrincipalIdentity) -> Ordering
fn cmp(&self, other: &PrincipalIdentity) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PrincipalIdentity> for PrincipalIdentity
impl PartialEq<PrincipalIdentity> for PrincipalIdentity
sourcefn eq(&self, other: &PrincipalIdentity) -> bool
fn eq(&self, other: &PrincipalIdentity) -> bool
sourceimpl PartialOrd<PrincipalIdentity> for PrincipalIdentity
impl PartialOrd<PrincipalIdentity> for PrincipalIdentity
sourcefn partial_cmp(&self, other: &PrincipalIdentity) -> Option<Ordering>
fn partial_cmp(&self, other: &PrincipalIdentity) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl TryFrom<&PrincipalIdentity> for Arn
impl TryFrom<&PrincipalIdentity> for Arn
type Error = PrincipalError
type Error = PrincipalError
The type returned in the event of a conversion error.
impl Eq for PrincipalIdentity
impl StructuralEq for PrincipalIdentity
impl StructuralPartialEq for PrincipalIdentity
Auto Trait Implementations
impl RefUnwindSafe for PrincipalIdentity
impl Send for PrincipalIdentity
impl Sync for PrincipalIdentity
impl Unpin for PrincipalIdentity
impl UnwindSafe for PrincipalIdentity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more