#[non_exhaustive]pub struct CreateWorkstationClusterRequest {
pub parent: String,
pub workstation_cluster_id: String,
pub workstation_cluster: Option<WorkstationCluster>,
pub validate_only: bool,
/* private fields */
}Expand description
Message for creating a CreateWorkstationCluster.
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. Parent resource name.
workstation_cluster_id: StringRequired. ID to use for the workstation cluster.
workstation_cluster: Option<WorkstationCluster>Required. Workstation cluster to create.
validate_only: boolOptional. If set, validate the request and preview the review, but do not actually apply it.
Implementations§
Source§impl CreateWorkstationClusterRequest
impl CreateWorkstationClusterRequest
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_workstation_cluster_id<T: Into<String>>(self, v: T) -> Self
pub fn set_workstation_cluster_id<T: Into<String>>(self, v: T) -> Self
Sets the value of workstation_cluster_id.
§Example
ⓘ
let x = CreateWorkstationClusterRequest::new().set_workstation_cluster_id("example");Sourcepub fn set_workstation_cluster<T>(self, v: T) -> Selfwhere
T: Into<WorkstationCluster>,
pub fn set_workstation_cluster<T>(self, v: T) -> Selfwhere
T: Into<WorkstationCluster>,
Sets the value of workstation_cluster.
§Example
ⓘ
use google_cloud_workstations_v1::model::WorkstationCluster;
let x = CreateWorkstationClusterRequest::new().set_workstation_cluster(WorkstationCluster::default()/* use setters */);Sourcepub fn set_or_clear_workstation_cluster<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkstationCluster>,
pub fn set_or_clear_workstation_cluster<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkstationCluster>,
Sets or clears the value of workstation_cluster.
§Example
ⓘ
use google_cloud_workstations_v1::model::WorkstationCluster;
let x = CreateWorkstationClusterRequest::new().set_or_clear_workstation_cluster(Some(WorkstationCluster::default()/* use setters */));
let x = CreateWorkstationClusterRequest::new().set_or_clear_workstation_cluster(None::<WorkstationCluster>);Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
§Example
ⓘ
let x = CreateWorkstationClusterRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for CreateWorkstationClusterRequest
impl Clone for CreateWorkstationClusterRequest
Source§fn clone(&self) -> CreateWorkstationClusterRequest
fn clone(&self) -> CreateWorkstationClusterRequest
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 Default for CreateWorkstationClusterRequest
impl Default for CreateWorkstationClusterRequest
Source§fn default() -> CreateWorkstationClusterRequest
fn default() -> CreateWorkstationClusterRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateWorkstationClusterRequest
impl PartialEq for CreateWorkstationClusterRequest
Source§fn eq(&self, other: &CreateWorkstationClusterRequest) -> bool
fn eq(&self, other: &CreateWorkstationClusterRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateWorkstationClusterRequest
Auto Trait Implementations§
impl Freeze for CreateWorkstationClusterRequest
impl RefUnwindSafe for CreateWorkstationClusterRequest
impl Send for CreateWorkstationClusterRequest
impl Sync for CreateWorkstationClusterRequest
impl Unpin for CreateWorkstationClusterRequest
impl UnwindSafe for CreateWorkstationClusterRequest
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