#[non_exhaustive]pub struct SubmitJobRequest {
pub project_id: String,
pub region: String,
pub job: Option<Job>,
pub request_id: String,
/* private fields */
}
Expand description
A request to submit 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: String
Required. The ID of the Google Cloud Platform project that the job belongs to.
region: String
Required. The Dataproc region in which to handle the request.
job: Option<Job>
Required. The job resource.
request_id: String
Optional. A unique id used to identify the request. If the server receives two SubmitJobRequests with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.
It is recommended to always set this value to a UUID.
The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Implementations§
Source§impl SubmitJobRequest
impl SubmitJobRequest
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_or_clear_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
Sets or clears the value of job.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for SubmitJobRequest
impl Clone for SubmitJobRequest
Source§fn clone(&self) -> SubmitJobRequest
fn clone(&self) -> SubmitJobRequest
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 SubmitJobRequest
impl Debug for SubmitJobRequest
Source§impl Default for SubmitJobRequest
impl Default for SubmitJobRequest
Source§fn default() -> SubmitJobRequest
fn default() -> SubmitJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for SubmitJobRequest
impl Message for SubmitJobRequest
Source§impl PartialEq for SubmitJobRequest
impl PartialEq for SubmitJobRequest
impl StructuralPartialEq for SubmitJobRequest
Auto Trait Implementations§
impl Freeze for SubmitJobRequest
impl RefUnwindSafe for SubmitJobRequest
impl Send for SubmitJobRequest
impl Sync for SubmitJobRequest
impl Unpin for SubmitJobRequest
impl UnwindSafe for SubmitJobRequest
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