#[non_exhaustive]pub struct CreateJobRequest {
pub parent: String,
pub job_id: String,
pub job: Option<Job>,
pub request_id: String,
/* private fields */
}Expand description
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. Value for parent.
job_id: StringRequired. The optional job_id for this Job . If not
specified, an id is generated. job_id should be no more than 128
characters and must include only characters available in DNS names, as
defined by RFC-1123.
job: Option<Job>Required. The resource being created
request_id: StringOptional. An optional request ID to identify requests. Specify a unique
request ID in case you need to retry your request. Requests with same
request_id will be ignored for at least 60 minutes since the first
request. The request ID must be a valid UUID with the exception that zero
UUID is not supported (00000000-0000-0000-0000-000000000000).
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_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<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_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(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