#[non_exhaustive]pub struct DeviceTypeBuilder { /* private fields */ }Expand description
A builder for DeviceType.
Implementations§
source§impl DeviceTypeBuilder
impl DeviceTypeBuilder
sourcepub fn device_key(self, input: impl Into<String>) -> Self
pub fn device_key(self, input: impl Into<String>) -> Self
The device key.
sourcepub fn set_device_key(self, input: Option<String>) -> Self
pub fn set_device_key(self, input: Option<String>) -> Self
The device key.
sourcepub fn get_device_key(&self) -> &Option<String>
pub fn get_device_key(&self) -> &Option<String>
The device key.
sourcepub fn device_attributes(self, input: AttributeType) -> Self
pub fn device_attributes(self, input: AttributeType) -> Self
Appends an item to device_attributes.
To override the contents of this collection use set_device_attributes.
The device attributes.
sourcepub fn set_device_attributes(self, input: Option<Vec<AttributeType>>) -> Self
pub fn set_device_attributes(self, input: Option<Vec<AttributeType>>) -> Self
The device attributes.
sourcepub fn get_device_attributes(&self) -> &Option<Vec<AttributeType>>
pub fn get_device_attributes(&self) -> &Option<Vec<AttributeType>>
The device attributes.
sourcepub fn device_create_date(self, input: DateTime) -> Self
pub fn device_create_date(self, input: DateTime) -> Self
The creation date of the device.
sourcepub fn set_device_create_date(self, input: Option<DateTime>) -> Self
pub fn set_device_create_date(self, input: Option<DateTime>) -> Self
The creation date of the device.
sourcepub fn get_device_create_date(&self) -> &Option<DateTime>
pub fn get_device_create_date(&self) -> &Option<DateTime>
The creation date of the device.
sourcepub fn device_last_modified_date(self, input: DateTime) -> Self
pub fn device_last_modified_date(self, input: DateTime) -> Self
The date and time, in ISO 8601 format, when the item was modified.
sourcepub fn set_device_last_modified_date(self, input: Option<DateTime>) -> Self
pub fn set_device_last_modified_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO 8601 format, when the item was modified.
sourcepub fn get_device_last_modified_date(&self) -> &Option<DateTime>
pub fn get_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, input: DateTime) -> Self
pub fn device_last_authenticated_date(self, input: DateTime) -> Self
The date when the device was last authenticated.
sourcepub fn set_device_last_authenticated_date(self, input: Option<DateTime>) -> Self
pub fn set_device_last_authenticated_date(self, input: Option<DateTime>) -> Self
The date when the device was last authenticated.
sourcepub fn get_device_last_authenticated_date(&self) -> &Option<DateTime>
pub fn get_device_last_authenticated_date(&self) -> &Option<DateTime>
The date when the device was last authenticated.
sourcepub fn build(self) -> DeviceType
pub fn build(self) -> DeviceType
Consumes the builder and constructs a DeviceType.
Trait Implementations§
source§impl Clone for DeviceTypeBuilder
impl Clone for DeviceTypeBuilder
source§fn clone(&self) -> DeviceTypeBuilder
fn clone(&self) -> DeviceTypeBuilder
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 DeviceTypeBuilder
impl Debug for DeviceTypeBuilder
source§impl Default for DeviceTypeBuilder
impl Default for DeviceTypeBuilder
source§fn default() -> DeviceTypeBuilder
fn default() -> DeviceTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DeviceTypeBuilder
impl PartialEq for DeviceTypeBuilder
source§fn eq(&self, other: &DeviceTypeBuilder) -> bool
fn eq(&self, other: &DeviceTypeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeviceTypeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DeviceTypeBuilder
impl Send for DeviceTypeBuilder
impl Sync for DeviceTypeBuilder
impl Unpin for DeviceTypeBuilder
impl UnwindSafe for DeviceTypeBuilder
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.