pub struct RootUser { /* private fields */ }
Expand description
Details about an AWS account root user.
RootUser structs are immutable.
Implementations§
Source§impl 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.
Sourcepub fn account_id(&self) -> &str
pub fn account_id(&self) -> &str
The account id of the user.
Trait Implementations§
Source§impl From<RootUser> for PrincipalIdentity
Wrap a RootUser in a PrincipalIdentity.
impl From<RootUser> for PrincipalIdentity
Wrap a RootUser in a PrincipalIdentity.
Source§impl Ord for RootUser
impl Ord for RootUser
Source§impl PartialOrd for RootUser
impl PartialOrd for RootUser
impl Eq for RootUser
impl StructuralPartialEq for RootUser
Auto Trait Implementations§
impl Freeze for RootUser
impl RefUnwindSafe for RootUser
impl Send for RootUser
impl Sync for RootUser
impl Unpin for RootUser
impl UnwindSafe for RootUser
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