#[non_exhaustive]pub struct UpdateJobRequest {
pub job: Option<Job>,
pub validate_only: bool,
pub allow_missing: bool,
/* private fields */
}Expand description
Request message for updating 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.job: Option<Job>Required. The Job to be updated.
validate_only: boolIndicates that the request should be validated and default values populated, without persisting the request or updating any resources.
allow_missing: boolOptional. If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true.
Implementations§
Source§impl UpdateJobRequest
impl UpdateJobRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for UpdateJobRequest
impl Clone for UpdateJobRequest
Source§fn clone(&self) -> UpdateJobRequest
fn clone(&self) -> UpdateJobRequest
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 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 Message for UpdateJobRequest
impl Message for UpdateJobRequest
Source§impl PartialEq for UpdateJobRequest
impl PartialEq 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