Struct scratchstack_aws_principal::details::RootUserDetails [−][src]
pub struct RootUserDetails { pub account_id: String, }
Details about an AWS root user.
Fields
account_id: String
The account id.
Implementations
impl RootUserDetails
[src]
pub fn new<S1>(account_id: S1) -> Result<Self, PrincipalError> where
S1: Into<String>,
[src]
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]
fn clone(&self) -> RootUserDetails
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RootUserDetails
[src]
impl Eq 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 StructuralPartialEq for RootUserDetails
[src]
Auto Trait Implementations
impl RefUnwindSafe for RootUserDetails
impl Send for RootUserDetails
impl Sync for RootUserDetails
impl Unpin for RootUserDetails
impl UnwindSafe for RootUserDetails
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Data for T where
T: Clone + Debug + PartialEq<T> + Eq + Send + Sync + 'static,
[src]
T: Clone + Debug + PartialEq<T> + Eq + Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,