#[non_exhaustive]pub struct RunJobRequest {
pub name: String,
pub validate_only: bool,
pub etag: String,
pub overrides: Option<Overrides>,
/* private fields */
}Expand description
Request message to create a new Execution of 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.name: StringRequired. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
validate_only: boolIndicates that the request should be validated without actually deleting any resources.
etag: StringA system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
overrides: Option<Overrides>Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec.
Implementations§
Source§impl RunJobRequest
impl RunJobRequest
pub fn new() -> 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_overrides<T>(self, v: T) -> Self
pub fn set_overrides<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_overrides<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_overrides<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RunJobRequest
impl Clone for RunJobRequest
Source§fn clone(&self) -> RunJobRequest
fn clone(&self) -> RunJobRequest
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 RunJobRequest
impl Debug for RunJobRequest
Source§impl Default for RunJobRequest
impl Default for RunJobRequest
Source§fn default() -> RunJobRequest
fn default() -> RunJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for RunJobRequest
impl Message for RunJobRequest
Source§impl PartialEq for RunJobRequest
impl PartialEq for RunJobRequest
impl StructuralPartialEq for RunJobRequest
Auto Trait Implementations§
impl Freeze for RunJobRequest
impl RefUnwindSafe for RunJobRequest
impl Send for RunJobRequest
impl Sync for RunJobRequest
impl Unpin for RunJobRequest
impl UnwindSafe for RunJobRequest
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