Struct aws_sdk_devicefarm::types::DevicePool
source · #[non_exhaustive]pub struct DevicePool {
pub arn: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub type: Option<DevicePoolType>,
pub rules: Option<Vec<Rule>>,
pub max_devices: Option<i32>,
}
Expand description
Represents a collection of device types.
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.arn: Option<String>
The device pool's ARN.
name: Option<String>
The device pool's name.
description: Option<String>
The device pool's description.
type: Option<DevicePoolType>
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
rules: Option<Vec<Rule>>
Information about the device pool's rules.
max_devices: Option<i32>
The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the rules
parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
Implementations§
source§impl DevicePool
impl DevicePool
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The device pool's description.
sourcepub fn type(&self) -> Option<&DevicePoolType>
pub fn type(&self) -> Option<&DevicePoolType>
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
sourcepub fn rules(&self) -> &[Rule]
pub fn rules(&self) -> &[Rule]
Information about the device pool's rules.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none()
.
sourcepub fn max_devices(&self) -> Option<i32>
pub fn max_devices(&self) -> Option<i32>
The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the rules
parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
source§impl DevicePool
impl DevicePool
sourcepub fn builder() -> DevicePoolBuilder
pub fn builder() -> DevicePoolBuilder
Creates a new builder-style object to manufacture DevicePool
.
Trait Implementations§
source§impl Clone for DevicePool
impl Clone for DevicePool
source§fn clone(&self) -> DevicePool
fn clone(&self) -> DevicePool
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DevicePool
impl Debug for DevicePool
source§impl PartialEq for DevicePool
impl PartialEq for DevicePool
source§fn eq(&self, other: &DevicePool) -> bool
fn eq(&self, other: &DevicePool) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DevicePool
Auto Trait Implementations§
impl Freeze for DevicePool
impl RefUnwindSafe for DevicePool
impl Send for DevicePool
impl Sync for DevicePool
impl Unpin for DevicePool
impl UnwindSafe for DevicePool
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