pub struct DeleteJobRequest {
pub force: Option<bool>,
pub job_id: String,
}Fields§
§force: Option<bool>(Optional) When true, you can delete a job which is "INPROGRESS". Otherwise, you can only delete a job which is in a terminal state ("COMPLETED" or "CANCELED") or an exception will occur. The default is false.
Deleting a job which is "INPROGRESS", will cause a device which is executing the job to be unable to access job information or update the job execution status. Use caution and ensure that each device executing a job which is deleted is able to recover to a valid state.
job_id: StringThe ID of the job to be deleted.
After a job deletion is completed, you may reuse this jobId when you create a new job. However, this is not recommended, and you must ensure that your devices are not using the jobId to refer to the deleted job.
Trait Implementations§
Source§impl Clone for DeleteJobRequest
impl Clone for DeleteJobRequest
Source§fn clone(&self) -> DeleteJobRequest
fn clone(&self) -> DeleteJobRequest
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 DeleteJobRequest
impl Debug for DeleteJobRequest
Source§impl Default for DeleteJobRequest
impl Default for DeleteJobRequest
Source§fn default() -> DeleteJobRequest
fn default() -> DeleteJobRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeleteJobRequest
impl PartialEq for DeleteJobRequest
Source§impl Serialize for DeleteJobRequest
impl Serialize for DeleteJobRequest
impl StructuralPartialEq for DeleteJobRequest
Auto Trait Implementations§
impl Freeze for DeleteJobRequest
impl RefUnwindSafe for DeleteJobRequest
impl Send for DeleteJobRequest
impl Sync for DeleteJobRequest
impl Unpin for DeleteJobRequest
impl UnwindSafe for DeleteJobRequest
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