#[non_exhaustive]pub struct CancelJobRequest {
pub project_id: String,
pub region: String,
pub job_id: String,
/* private fields */
}Expand description
A request to cancel a job.
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.project_id: StringRequired. The ID of the Google Cloud Platform project that the job belongs to.
region: StringRequired. The Dataproc region in which to handle the request.
job_id: StringRequired. The job ID.
Implementations§
Source§impl CancelJobRequest
impl CancelJobRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of job_id.
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 Message for CancelJobRequest
impl Message for CancelJobRequest
Source§impl PartialEq for CancelJobRequest
impl PartialEq 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