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()
.