#[non_exhaustive]pub struct WorkflowTemplatePlacement {
pub placement: Option<Placement>,
/* private fields */
}Expand description
Specifies workflow execution target.
Either managed_cluster or cluster_selector is required.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.placement: Option<Placement>Required. Specifies where workflow executes; either on a managed cluster or an existing cluster chosen by labels.
Implementations§
Source§impl WorkflowTemplatePlacement
impl WorkflowTemplatePlacement
Sourcepub fn set_placement<T: Into<Option<Placement>>>(self, v: T) -> Self
pub fn set_placement<T: Into<Option<Placement>>>(self, v: T) -> Self
Sets the value of placement.
Note that all the setters affecting placement are mutually
exclusive.
§Example
use google_cloud_dataproc_v1::model::ManagedCluster;
let x = WorkflowTemplatePlacement::new().set_placement(Some(
google_cloud_dataproc_v1::model::workflow_template_placement::Placement::ManagedCluster(ManagedCluster::default().into())));Sourcepub fn managed_cluster(&self) -> Option<&Box<ManagedCluster>>
pub fn managed_cluster(&self) -> Option<&Box<ManagedCluster>>
The value of placement
if it holds a ManagedCluster, None if the field is not set or
holds a different branch.
Sourcepub fn set_managed_cluster<T: Into<Box<ManagedCluster>>>(self, v: T) -> Self
pub fn set_managed_cluster<T: Into<Box<ManagedCluster>>>(self, v: T) -> Self
Sets the value of placement
to hold a ManagedCluster.
Note that all the setters affecting placement are
mutually exclusive.
§Example
use google_cloud_dataproc_v1::model::ManagedCluster;
let x = WorkflowTemplatePlacement::new().set_managed_cluster(ManagedCluster::default()/* use setters */);
assert!(x.managed_cluster().is_some());
assert!(x.cluster_selector().is_none());Sourcepub fn cluster_selector(&self) -> Option<&Box<ClusterSelector>>
pub fn cluster_selector(&self) -> Option<&Box<ClusterSelector>>
The value of placement
if it holds a ClusterSelector, None if the field is not set or
holds a different branch.
Sourcepub fn set_cluster_selector<T: Into<Box<ClusterSelector>>>(self, v: T) -> Self
pub fn set_cluster_selector<T: Into<Box<ClusterSelector>>>(self, v: T) -> Self
Sets the value of placement
to hold a ClusterSelector.
Note that all the setters affecting placement are
mutually exclusive.
§Example
use google_cloud_dataproc_v1::model::ClusterSelector;
let x = WorkflowTemplatePlacement::new().set_cluster_selector(ClusterSelector::default()/* use setters */);
assert!(x.cluster_selector().is_some());
assert!(x.managed_cluster().is_none());Trait Implementations§
Source§impl Clone for WorkflowTemplatePlacement
impl Clone for WorkflowTemplatePlacement
Source§fn clone(&self) -> WorkflowTemplatePlacement
fn clone(&self) -> WorkflowTemplatePlacement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkflowTemplatePlacement
impl Debug for WorkflowTemplatePlacement
Source§impl Default for WorkflowTemplatePlacement
impl Default for WorkflowTemplatePlacement
Source§fn default() -> WorkflowTemplatePlacement
fn default() -> WorkflowTemplatePlacement
Source§impl Message for WorkflowTemplatePlacement
impl Message for WorkflowTemplatePlacement
impl StructuralPartialEq for WorkflowTemplatePlacement
Auto Trait Implementations§
impl Freeze for WorkflowTemplatePlacement
impl RefUnwindSafe for WorkflowTemplatePlacement
impl Send for WorkflowTemplatePlacement
impl Sync for WorkflowTemplatePlacement
impl Unpin for WorkflowTemplatePlacement
impl UnsafeUnpin for WorkflowTemplatePlacement
impl UnwindSafe for WorkflowTemplatePlacement
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request