#[non_exhaustive]pub struct UpdateJobRequest {
pub project_id: String,
pub region: String,
pub job_id: String,
pub job: Option<Job>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
A request to update 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.
job: Option<Job>Required. The changes to the job.
update_mask: Option<FieldMask>Required. Specifies the path, relative to <code>Job</code>, of
the field to update. For example, to update the labels of a Job the
<code>update_mask</code> parameter would be specified as
<code>labels</code>, and the PATCH request body would specify the new
value. <strong>Note:</strong> Currently, <code>labels</code> is the only
field that can be updated.
Implementations§
Source§impl UpdateJobRequest
impl UpdateJobRequest
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.
Sourcepub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
pub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
Sets the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateJobRequest
impl Clone for UpdateJobRequest
Source§fn clone(&self) -> UpdateJobRequest
fn clone(&self) -> UpdateJobRequest
Returns a copy 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 UpdateJobRequest
impl Debug for UpdateJobRequest
Source§impl Default for UpdateJobRequest
impl Default for UpdateJobRequest
Source§fn default() -> UpdateJobRequest
fn default() -> UpdateJobRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateJobRequestwhere
UpdateJobRequest: Default,
impl<'de> Deserialize<'de> for UpdateJobRequestwhere
UpdateJobRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for UpdateJobRequest
impl Message for UpdateJobRequest
Source§impl PartialEq for UpdateJobRequest
impl PartialEq for UpdateJobRequest
Source§impl Serialize for UpdateJobRequest
impl Serialize for UpdateJobRequest
impl StructuralPartialEq for UpdateJobRequest
Auto Trait Implementations§
impl Freeze for UpdateJobRequest
impl RefUnwindSafe for UpdateJobRequest
impl Send for UpdateJobRequest
impl Sync for UpdateJobRequest
impl Unpin for UpdateJobRequest
impl UnwindSafe for UpdateJobRequest
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