#[non_exhaustive]pub struct JobPlacement {
pub cluster_name: String,
pub cluster_uuid: String,
pub cluster_labels: HashMap<String, String>,
/* private fields */
}Expand description
Dataproc job config.
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.cluster_name: StringRequired. The name of the cluster where the job will be submitted.
cluster_uuid: StringOutput only. A cluster UUID generated by the Dataproc service when the job is submitted.
cluster_labels: HashMap<String, String>Optional. Cluster labels to identify a cluster where the job will be submitted.
Implementations§
Source§impl JobPlacement
impl JobPlacement
pub fn new() -> Self
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_cluster_uuid<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_uuid<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_uuid.
Sourcepub fn set_cluster_labels<T, K, V>(self, v: T) -> Self
pub fn set_cluster_labels<T, K, V>(self, v: T) -> Self
Sets the value of cluster_labels.
Trait Implementations§
Source§impl Clone for JobPlacement
impl Clone for JobPlacement
Source§fn clone(&self) -> JobPlacement
fn clone(&self) -> JobPlacement
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 JobPlacement
impl Debug for JobPlacement
Source§impl Default for JobPlacement
impl Default for JobPlacement
Source§fn default() -> JobPlacement
fn default() -> JobPlacement
Returns the “default value” for a type. Read more
Source§impl Message for JobPlacement
impl Message for JobPlacement
Source§impl PartialEq for JobPlacement
impl PartialEq for JobPlacement
impl StructuralPartialEq for JobPlacement
Auto Trait Implementations§
impl Freeze for JobPlacement
impl RefUnwindSafe for JobPlacement
impl Send for JobPlacement
impl Sync for JobPlacement
impl Unpin for JobPlacement
impl UnwindSafe for JobPlacement
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