Struct aws_sdk_cognitoidentityprovider::types::DeviceType
source · #[non_exhaustive]pub struct DeviceType {
pub device_key: Option<String>,
pub device_attributes: Option<Vec<AttributeType>>,
pub device_create_date: Option<DateTime>,
pub device_last_modified_date: Option<DateTime>,
pub device_last_authenticated_date: Option<DateTime>,
}Expand description
The device type.
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.device_key: Option<String>The device key.
device_attributes: Option<Vec<AttributeType>>The device attributes.
device_create_date: Option<DateTime>The creation date of the device.
device_last_modified_date: Option<DateTime>The date and time, in ISO 8601 format, when the item was modified.
device_last_authenticated_date: Option<DateTime>The date when the device was last authenticated.
Implementations§
source§impl DeviceType
impl DeviceType
sourcepub fn device_key(&self) -> Option<&str>
pub fn device_key(&self) -> Option<&str>
The device key.
sourcepub fn device_attributes(&self) -> &[AttributeType]
pub fn device_attributes(&self) -> &[AttributeType]
The device attributes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .device_attributes.is_none().
sourcepub fn device_create_date(&self) -> Option<&DateTime>
pub fn device_create_date(&self) -> Option<&DateTime>
The creation date of the device.
sourcepub fn device_last_modified_date(&self) -> Option<&DateTime>
pub fn device_last_modified_date(&self) -> Option<&DateTime>
The date and time, in ISO 8601 format, when the item was modified.
sourcepub fn device_last_authenticated_date(&self) -> Option<&DateTime>
pub fn device_last_authenticated_date(&self) -> Option<&DateTime>
The date when the device was last authenticated.
source§impl DeviceType
impl DeviceType
sourcepub fn builder() -> DeviceTypeBuilder
pub fn builder() -> DeviceTypeBuilder
Creates a new builder-style object to manufacture DeviceType.
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
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 DeviceType
impl Debug for DeviceType
source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
source§fn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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.