#[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
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.
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

The unique identifier you assigned to the job when it was created.

The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).

Will be true if the job execution was canceled with the optional force parameter set to true.

A collection of name/value pairs that describe the status of the job execution.

The ARN of the thing on which the job execution is running.

The time, in seconds since the epoch, when the job execution was queued.

The time, in seconds since the epoch, when the job execution started.

The time, in seconds since the epoch, when the job execution was last updated.

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.

The version of the job execution. Job execution versions are incremented each time they are updated by a device.

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.

Creates a new builder-style object to manufacture JobExecution

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more