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