pub struct CancelJobRequest {
pub comment: Option<String>,
pub force: Option<bool>,
pub job_id: String,
pub reason_code: Option<String>,
}Fields§
§comment: Option<String>An optional comment string describing why the job was canceled.
force: Option<bool>(Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
job_id: StringThe unique identifier you assigned to this job when it was created.
reason_code: Option<String>(Optional)A reason code string that explains why the job was canceled.
Trait Implementations§
Source§impl Clone for CancelJobRequest
impl Clone for CancelJobRequest
Source§fn clone(&self) -> CancelJobRequest
fn clone(&self) -> CancelJobRequest
Returns a duplicate 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 CancelJobRequest
impl Debug for CancelJobRequest
Source§impl Default for CancelJobRequest
impl Default for CancelJobRequest
Source§fn default() -> CancelJobRequest
fn default() -> CancelJobRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CancelJobRequest
impl PartialEq for CancelJobRequest
Source§impl Serialize for CancelJobRequest
impl Serialize for CancelJobRequest
impl StructuralPartialEq for CancelJobRequest
Auto Trait Implementations§
impl Freeze for CancelJobRequest
impl RefUnwindSafe for CancelJobRequest
impl Send for CancelJobRequest
impl Sync for CancelJobRequest
impl Unpin for CancelJobRequest
impl UnwindSafe for CancelJobRequest
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