Struct aws_sdk_networkmanager::types::Device
source · #[non_exhaustive]pub struct Device {Show 14 fields
pub device_id: Option<String>,
pub device_arn: Option<String>,
pub global_network_id: Option<String>,
pub aws_location: Option<AwsLocation>,
pub description: Option<String>,
pub type: Option<String>,
pub vendor: Option<String>,
pub model: Option<String>,
pub serial_number: Option<String>,
pub location: Option<Location>,
pub site_id: Option<String>,
pub created_at: Option<DateTime>,
pub state: Option<DeviceState>,
pub tags: Option<Vec<Tag>>,
}
Expand description
Describes a device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.device_id: Option<String>
The ID of the device.
device_arn: Option<String>
The Amazon Resource Name (ARN) of the device.
global_network_id: Option<String>
The ID of the global network.
aws_location: Option<AwsLocation>
The Amazon Web Services location of the device.
description: Option<String>
The description of the device.
type: Option<String>
The device type.
vendor: Option<String>
The device vendor.
model: Option<String>
The device model.
serial_number: Option<String>
The device serial number.
location: Option<Location>
The site location.
site_id: Option<String>
The site ID.
created_at: Option<DateTime>
The date and time that the site was created.
state: Option<DeviceState>
The device state.
The tags for the device.
Implementations§
source§impl Device
impl Device
sourcepub fn device_arn(&self) -> Option<&str>
pub fn device_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the device.
sourcepub fn global_network_id(&self) -> Option<&str>
pub fn global_network_id(&self) -> Option<&str>
The ID of the global network.
sourcepub fn aws_location(&self) -> Option<&AwsLocation>
pub fn aws_location(&self) -> Option<&AwsLocation>
The Amazon Web Services location of the device.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the device.
sourcepub fn serial_number(&self) -> Option<&str>
pub fn serial_number(&self) -> Option<&str>
The device serial number.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time that the site was created.
sourcepub fn state(&self) -> Option<&DeviceState>
pub fn state(&self) -> Option<&DeviceState>
The device state.
The tags for the device.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
Trait Implementations§
source§impl PartialEq for Device
impl PartialEq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more