Struct aws_sdk_devicefarm::types::DeviceInstance
source · #[non_exhaustive]pub struct DeviceInstance {
pub arn: Option<String>,
pub device_arn: Option<String>,
pub labels: Option<Vec<String>>,
pub status: Option<InstanceStatus>,
pub udid: Option<String>,
pub instance_profile: Option<InstanceProfile>,
}Expand description
Represents the device instance.
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.arn: Option<String>The Amazon Resource Name (ARN) of the device instance.
device_arn: Option<String>The ARN of the device.
labels: Option<Vec<String>>An array of strings that describe the device instance.
status: Option<InstanceStatus>The status of the device instance. Valid values are listed here.
udid: Option<String>Unique device identifier for the device instance.
instance_profile: Option<InstanceProfile>A object that contains information about the instance profile.
Implementations§
source§impl DeviceInstance
impl DeviceInstance
sourcepub fn device_arn(&self) -> Option<&str>
pub fn device_arn(&self) -> Option<&str>
The ARN of the device.
sourcepub fn labels(&self) -> &[String]
pub fn labels(&self) -> &[String]
An array of strings that describe the device instance.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .labels.is_none().
sourcepub fn status(&self) -> Option<&InstanceStatus>
pub fn status(&self) -> Option<&InstanceStatus>
The status of the device instance. Valid values are listed here.
sourcepub fn instance_profile(&self) -> Option<&InstanceProfile>
pub fn instance_profile(&self) -> Option<&InstanceProfile>
A object that contains information about the instance profile.
source§impl DeviceInstance
impl DeviceInstance
sourcepub fn builder() -> DeviceInstanceBuilder
pub fn builder() -> DeviceInstanceBuilder
Creates a new builder-style object to manufacture DeviceInstance.
Trait Implementations§
source§impl Clone for DeviceInstance
impl Clone for DeviceInstance
source§fn clone(&self) -> DeviceInstance
fn clone(&self) -> DeviceInstance
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 DeviceInstance
impl Debug for DeviceInstance
source§impl PartialEq for DeviceInstance
impl PartialEq for DeviceInstance
source§fn eq(&self, other: &DeviceInstance) -> bool
fn eq(&self, other: &DeviceInstance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeviceInstance
Auto Trait Implementations§
impl Freeze for DeviceInstance
impl RefUnwindSafe for DeviceInstance
impl Send for DeviceInstance
impl Sync for DeviceInstance
impl Unpin for DeviceInstance
impl UnwindSafe for DeviceInstance
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.