Struct scratchstack_aws_principal::RootUser
source · [−]pub struct RootUser { /* private fields */ }
Expand description
Details about an AWS account root user.
Implementations
sourceimpl RootUser
impl RootUser
sourcepub fn new(partition: &str, account_id: &str) -> Result<Self, PrincipalError>
pub fn new(partition: &str, account_id: &str) -> Result<Self, PrincipalError>
Create a RootUser object, refering to an actor with root credentials for the specified AWS account.
Arguments
partition
- The partition this principal exists in.account_id
: The 12 digit account id. This must be composed of 12 ASCII digits or a PrincipalError::InvalidAccountId error will be returned.
Return value
If the requirement is met, a RootUser object is returned. Otherwise, a PrincipalError error is returned.
pub fn partition(&self) -> &str
pub fn account_id(&self) -> &str
Trait Implementations
sourceimpl From<RootUser> for PrincipalIdentity
impl From<RootUser> for PrincipalIdentity
sourceimpl Ord for RootUser
impl Ord for RootUser
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<RootUser> for RootUser
impl PartialOrd<RootUser> for RootUser
sourcefn partial_cmp(&self, other: &RootUser) -> Option<Ordering>
fn partial_cmp(&self, other: &RootUser) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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 moreimpl Eq for RootUser
impl StructuralEq for RootUser
impl StructuralPartialEq for RootUser
Auto Trait Implementations
impl RefUnwindSafe for RootUser
impl Send for RootUser
impl Sync for RootUser
impl Unpin for RootUser
impl UnwindSafe for RootUser
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