#[non_exhaustive]pub struct DeploymentSpec {
pub deployment_id: String,
pub deployment: Option<Deployment>,
/* private fields */
}Expand description
Spec for a deployment to be created.
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.deployment_id: StringRequired. The id of the deployment to be created which doesn’t include the project id and location.
deployment: Option<Deployment>Required. The deployment to be created.
Implementations§
Source§impl DeploymentSpec
impl DeploymentSpec
pub fn new() -> Self
Sourcepub fn set_deployment_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployment_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployment_id.
§Example
ⓘ
let x = DeploymentSpec::new().set_deployment_id("example");Sourcepub fn set_deployment<T>(self, v: T) -> Selfwhere
T: Into<Deployment>,
pub fn set_deployment<T>(self, v: T) -> Selfwhere
T: Into<Deployment>,
Sets the value of deployment.
§Example
ⓘ
use google_cloud_config_v1::model::Deployment;
let x = DeploymentSpec::new().set_deployment(Deployment::default()/* use setters */);Sourcepub fn set_or_clear_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Deployment>,
pub fn set_or_clear_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Deployment>,
Sets or clears the value of deployment.
§Example
ⓘ
use google_cloud_config_v1::model::Deployment;
let x = DeploymentSpec::new().set_or_clear_deployment(Some(Deployment::default()/* use setters */));
let x = DeploymentSpec::new().set_or_clear_deployment(None::<Deployment>);Trait Implementations§
Source§impl Clone for DeploymentSpec
impl Clone for DeploymentSpec
Source§fn clone(&self) -> DeploymentSpec
fn clone(&self) -> DeploymentSpec
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 DeploymentSpec
impl Debug for DeploymentSpec
Source§impl Default for DeploymentSpec
impl Default for DeploymentSpec
Source§fn default() -> DeploymentSpec
fn default() -> DeploymentSpec
Returns the “default value” for a type. Read more
Source§impl Message for DeploymentSpec
impl Message for DeploymentSpec
Source§impl PartialEq for DeploymentSpec
impl PartialEq for DeploymentSpec
impl StructuralPartialEq for DeploymentSpec
Auto Trait Implementations§
impl Freeze for DeploymentSpec
impl RefUnwindSafe for DeploymentSpec
impl Send for DeploymentSpec
impl Sync for DeploymentSpec
impl Unpin for DeploymentSpec
impl UnsafeUnpin for DeploymentSpec
impl UnwindSafe for DeploymentSpec
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