Struct aws_sdk_iot::model::JobExecution
source · [−]#[non_exhaustive]pub struct JobExecution {
pub job_id: Option<String>,
pub status: Option<JobExecutionStatus>,
pub force_canceled: Option<bool>,
pub status_details: Option<JobExecutionStatusDetails>,
pub thing_arn: Option<String>,
pub queued_at: Option<DateTime>,
pub started_at: Option<DateTime>,
pub last_updated_at: Option<DateTime>,
pub execution_number: Option<i64>,
pub version_number: i64,
pub approximate_seconds_before_timed_out: Option<i64>,
}
Expand description
The job execution object represents the execution of a job on a particular 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.job_id: Option<String>
The unique identifier you assigned to the job when it was created.
status: Option<JobExecutionStatus>
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
force_canceled: Option<bool>
Will be true
if the job execution was canceled with the optional force
parameter set to true
.
status_details: Option<JobExecutionStatusDetails>
A collection of name/value pairs that describe the status of the job execution.
thing_arn: Option<String>
The ARN of the thing on which the job execution is running.
queued_at: Option<DateTime>
The time, in seconds since the epoch, when the job execution was queued.
started_at: Option<DateTime>
The time, in seconds since the epoch, when the job execution started.
last_updated_at: Option<DateTime>
The time, in seconds since the epoch, when the job execution was last updated.
execution_number: Option<i64>
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.
version_number: i64
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
approximate_seconds_before_timed_out: Option<i64>
The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.
Implementations
sourceimpl JobExecution
impl JobExecution
sourcepub fn job_id(&self) -> Option<&str>
pub fn job_id(&self) -> Option<&str>
The unique identifier you assigned to the job when it was created.
sourcepub fn status(&self) -> Option<&JobExecutionStatus>
pub fn status(&self) -> Option<&JobExecutionStatus>
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
sourcepub fn force_canceled(&self) -> Option<bool>
pub fn force_canceled(&self) -> Option<bool>
Will be true
if the job execution was canceled with the optional force
parameter set to true
.
sourcepub fn status_details(&self) -> Option<&JobExecutionStatusDetails>
pub fn status_details(&self) -> Option<&JobExecutionStatusDetails>
A collection of name/value pairs that describe the status of the job execution.
sourcepub fn thing_arn(&self) -> Option<&str>
pub fn thing_arn(&self) -> Option<&str>
The ARN of the thing on which the job execution is running.
sourcepub fn queued_at(&self) -> Option<&DateTime>
pub fn queued_at(&self) -> Option<&DateTime>
The time, in seconds since the epoch, when the job execution was queued.
sourcepub fn started_at(&self) -> Option<&DateTime>
pub fn started_at(&self) -> Option<&DateTime>
The time, in seconds since the epoch, when the job execution started.
sourcepub fn last_updated_at(&self) -> Option<&DateTime>
pub fn last_updated_at(&self) -> Option<&DateTime>
The time, in seconds since the epoch, when the job execution was last updated.
sourcepub fn execution_number(&self) -> Option<i64>
pub fn execution_number(&self) -> Option<i64>
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.
sourcepub fn version_number(&self) -> i64
pub fn version_number(&self) -> i64
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
sourcepub fn approximate_seconds_before_timed_out(&self) -> Option<i64>
pub fn approximate_seconds_before_timed_out(&self) -> Option<i64>
The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.
sourceimpl JobExecution
impl JobExecution
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobExecution
Trait Implementations
sourceimpl Clone for JobExecution
impl Clone for JobExecution
sourcefn clone(&self) -> JobExecution
fn clone(&self) -> JobExecution
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JobExecution
impl Debug for JobExecution
sourceimpl PartialEq<JobExecution> for JobExecution
impl PartialEq<JobExecution> for JobExecution
sourcefn eq(&self, other: &JobExecution) -> bool
fn eq(&self, other: &JobExecution) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &JobExecution) -> bool
fn ne(&self, other: &JobExecution) -> bool
This method tests for !=
.
impl StructuralPartialEq for JobExecution
Auto Trait Implementations
impl RefUnwindSafe for JobExecution
impl Send for JobExecution
impl Sync for JobExecution
impl Unpin for JobExecution
impl UnwindSafe for JobExecution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more