Struct aws_sdk_iam::types::MfaDevice
source · #[non_exhaustive]pub struct MfaDevice {
pub user_name: String,
pub serial_number: String,
pub enable_date: DateTime,
}
Expand description
Contains information about an MFA device.
This data type is used as a response element in the ListMFADevices
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user_name: String
The user with whom the MFA device is associated.
serial_number: String
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
enable_date: DateTime
The date when the MFA device was enabled for the user.
Implementations§
source§impl MfaDevice
impl MfaDevice
sourcepub fn serial_number(&self) -> &str
pub fn serial_number(&self) -> &str
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
sourcepub fn enable_date(&self) -> &DateTime
pub fn enable_date(&self) -> &DateTime
The date when the MFA device was enabled for the user.
Trait Implementations§
source§impl PartialEq for MfaDevice
impl PartialEq for MfaDevice
impl StructuralPartialEq for MfaDevice
Auto Trait Implementations§
impl RefUnwindSafe for MfaDevice
impl Send for MfaDevice
impl Sync for MfaDevice
impl Unpin for MfaDevice
impl UnwindSafe for MfaDevice
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.