Struct scratchstack_aws_principal::details::RootUserDetails [−][src]
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: String
The account id.
Implementations
impl RootUserDetails
[src]
impl RootUserDetails
[src]pub fn new<S1>(
partition: Option<String>,
account_id: S1
) -> Result<Self, PrincipalError> where
S1: Into<String>,
[src]
partition: Option<String>,
account_id: S1
) -> Result<Self, PrincipalError> where
S1: Into<String>,
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
impl Clone for RootUserDetails
[src]
impl Clone for RootUserDetails
[src]fn clone(&self) -> RootUserDetails
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for RootUserDetails
[src]
impl Eq for RootUserDetails
[src]impl PartialEq<RootUserDetails> for RootUserDetails
[src]
impl PartialEq<RootUserDetails> for RootUserDetails
[src]fn eq(&self, other: &RootUserDetails) -> bool
[src]
fn ne(&self, other: &RootUserDetails) -> bool
[src]
impl StructuralEq for RootUserDetails
[src]
impl StructuralEq for RootUserDetails
[src]impl StructuralPartialEq for RootUserDetails
[src]
impl StructuralPartialEq for RootUserDetails
[src]Auto Trait Implementations
impl RefUnwindSafe for RootUserDetails
impl RefUnwindSafe for RootUserDetails
impl Send for RootUserDetails
impl Send for RootUserDetails
impl Sync for RootUserDetails
impl Sync for RootUserDetails
impl Unpin for RootUserDetails
impl Unpin for RootUserDetails
impl UnwindSafe for RootUserDetails
impl UnwindSafe for RootUserDetails