Struct aws_sdk_devicefarm::types::Job
source · #[non_exhaustive]pub struct Job {Show 15 fields
pub arn: Option<String>,
pub name: Option<String>,
pub type: Option<TestType>,
pub created: Option<DateTime>,
pub status: Option<ExecutionStatus>,
pub result: Option<ExecutionResult>,
pub started: Option<DateTime>,
pub stopped: Option<DateTime>,
pub counters: Option<Counters>,
pub message: Option<String>,
pub device: Option<Device>,
pub instance_arn: Option<String>,
pub device_minutes: Option<DeviceMinutes>,
pub video_endpoint: Option<String>,
pub video_capture: Option<bool>,
}
Expand description
Represents 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.arn: Option<String>
The job's ARN.
name: Option<String>
The job's name.
type: Option<TestType>
The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER. For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT
-
APPIUM_JAVA_TESTNG
-
APPIUM_PYTHON
-
APPIUM_NODE
-
APPIUM_RUBY
-
APPIUM_WEB_JAVA_JUNIT
-
APPIUM_WEB_JAVA_TESTNG
-
APPIUM_WEB_PYTHON
-
APPIUM_WEB_NODE
-
APPIUM_WEB_RUBY
-
CALABASH
-
INSTRUMENTATION
-
UIAUTOMATION
-
UIAUTOMATOR
-
XCTEST
-
XCTEST_UI
created: Option<DateTime>
When the job was created.
status: Option<ExecutionStatus>
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
result: Option<ExecutionResult>
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
started: Option<DateTime>
The job's start time.
stopped: Option<DateTime>
The job's stop time.
counters: Option<Counters>
The job's result counters.
message: Option<String>
A message about the job's result.
device: Option<Device>
The device (phone or tablet).
instance_arn: Option<String>
The ARN of the instance.
device_minutes: Option<DeviceMinutes>
Represents the total (metered or unmetered) minutes used by the job.
video_endpoint: Option<String>
The endpoint for streaming device video.
video_capture: Option<bool>
This value is set to true if video capture is enabled. Otherwise, it is set to false.
Implementations§
source§impl Job
impl Job
sourcepub fn type(&self) -> Option<&TestType>
pub fn type(&self) -> Option<&TestType>
The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER. For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT
-
APPIUM_JAVA_TESTNG
-
APPIUM_PYTHON
-
APPIUM_NODE
-
APPIUM_RUBY
-
APPIUM_WEB_JAVA_JUNIT
-
APPIUM_WEB_JAVA_TESTNG
-
APPIUM_WEB_PYTHON
-
APPIUM_WEB_NODE
-
APPIUM_WEB_RUBY
-
CALABASH
-
INSTRUMENTATION
-
UIAUTOMATION
-
UIAUTOMATOR
-
XCTEST
-
XCTEST_UI
sourcepub fn status(&self) -> Option<&ExecutionStatus>
pub fn status(&self) -> Option<&ExecutionStatus>
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn result(&self) -> Option<&ExecutionResult>
pub fn result(&self) -> Option<&ExecutionResult>
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn instance_arn(&self) -> Option<&str>
pub fn instance_arn(&self) -> Option<&str>
The ARN of the instance.
sourcepub fn device_minutes(&self) -> Option<&DeviceMinutes>
pub fn device_minutes(&self) -> Option<&DeviceMinutes>
Represents the total (metered or unmetered) minutes used by the job.
sourcepub fn video_endpoint(&self) -> Option<&str>
pub fn video_endpoint(&self) -> Option<&str>
The endpoint for streaming device video.
sourcepub fn video_capture(&self) -> Option<bool>
pub fn video_capture(&self) -> Option<bool>
This value is set to true if video capture is enabled. Otherwise, it is set to false.
Trait Implementations§
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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