pub struct RootUserDetails {
    pub partition: Option<String>,
    pub account_id: String,
}Expand description
Details about an AWS root user.
Fields§
§partition: Option<String>The partition this principal exists in. If None, the current partition is assumed.
account_id: StringThe account id.
Implementations§
source§impl RootUserDetails
 
impl RootUserDetails
sourcepub fn new<S1>(
    partition: Option<String>,
    account_id: S1,
) -> Result<Self, PrincipalError>
 
pub fn new<S1>( partition: Option<String>, account_id: S1, ) -> Result<Self, PrincipalError>
Create a RootUserDetails object
§Arguments
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 RootUserDetails object is returned. Otherwise, a PrincipalError error is returned.
Trait Implementations§
source§impl Clone for RootUserDetails
 
impl Clone for RootUserDetails
source§fn clone(&self) -> RootUserDetails
 
fn clone(&self) -> RootUserDetails
Returns a copy 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 RootUserDetails
 
impl Debug for RootUserDetails
source§impl PartialEq for RootUserDetails
 
impl PartialEq for RootUserDetails
source§fn eq(&self, other: &RootUserDetails) -> bool
 
fn eq(&self, other: &RootUserDetails) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for RootUserDetails
impl StructuralPartialEq for RootUserDetails
Auto Trait Implementations§
impl Freeze for RootUserDetails
impl RefUnwindSafe for RootUserDetails
impl Send for RootUserDetails
impl Sync for RootUserDetails
impl Unpin for RootUserDetails
impl UnwindSafe for RootUserDetails
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)