#[non_exhaustive]pub struct CreateJobRequest {
pub parent: String,
pub job: Option<Job>,
pub job_id: String,
pub validate_only: bool,
/* private fields */
}Expand description
Request message for creating 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.parent: StringRequired. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
job: Option<Job>Required. The Job instance to create.
job_id: StringRequired. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}.
validate_only: boolIndicates that the request should be validated and default values populated, without persisting the request or creating any resources.
Implementations§
Source§impl CreateJobRequest
impl CreateJobRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> 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_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: 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
Trait Implementations§
Source§impl Clone for CreateJobRequest
impl Clone for CreateJobRequest
Source§fn clone(&self) -> CreateJobRequest
fn clone(&self) -> CreateJobRequest
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 CreateJobRequest
impl Debug for CreateJobRequest
Source§impl Default for CreateJobRequest
impl Default for CreateJobRequest
Source§fn default() -> CreateJobRequest
fn default() -> CreateJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateJobRequest
impl Message for CreateJobRequest
Source§impl PartialEq for CreateJobRequest
impl PartialEq for CreateJobRequest
impl StructuralPartialEq for CreateJobRequest
Auto Trait Implementations§
impl Freeze for CreateJobRequest
impl RefUnwindSafe for CreateJobRequest
impl Send for CreateJobRequest
impl Sync for CreateJobRequest
impl Unpin for CreateJobRequest
impl UnwindSafe for CreateJobRequest
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