#[non_exhaustive]pub struct CreateFrameworkDeploymentRequest {
pub parent: String,
pub framework_deployment_id: String,
pub framework_deployment: Option<FrameworkDeployment>,
/* private fields */
}Expand description
The request message for [CreateFrameworkDeployment][].
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. The parent resource of the framework deployment in the format
organizations/{organization}/locations/{location}.
Only the global location is supported.
framework_deployment_id: StringOptional. An identifier for the framework deployment that’s unique in scope of the parent. If you don’t specify a value, then a random UUID is generated.
framework_deployment: Option<FrameworkDeployment>Required. The framework deployment that you’re creating.
Implementations§
Source§impl CreateFrameworkDeploymentRequest
impl CreateFrameworkDeploymentRequest
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_framework_deployment_id<T: Into<String>>(self, v: T) -> Self
pub fn set_framework_deployment_id<T: Into<String>>(self, v: T) -> Self
Sets the value of framework_deployment_id.
§Example
ⓘ
let x = CreateFrameworkDeploymentRequest::new().set_framework_deployment_id("example");Sourcepub fn set_framework_deployment<T>(self, v: T) -> Selfwhere
T: Into<FrameworkDeployment>,
pub fn set_framework_deployment<T>(self, v: T) -> Selfwhere
T: Into<FrameworkDeployment>,
Sets the value of framework_deployment.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::FrameworkDeployment;
let x = CreateFrameworkDeploymentRequest::new().set_framework_deployment(FrameworkDeployment::default()/* use setters */);Sourcepub fn set_or_clear_framework_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<FrameworkDeployment>,
pub fn set_or_clear_framework_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<FrameworkDeployment>,
Sets or clears the value of framework_deployment.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::FrameworkDeployment;
let x = CreateFrameworkDeploymentRequest::new().set_or_clear_framework_deployment(Some(FrameworkDeployment::default()/* use setters */));
let x = CreateFrameworkDeploymentRequest::new().set_or_clear_framework_deployment(None::<FrameworkDeployment>);Trait Implementations§
Source§impl Clone for CreateFrameworkDeploymentRequest
impl Clone for CreateFrameworkDeploymentRequest
Source§fn clone(&self) -> CreateFrameworkDeploymentRequest
fn clone(&self) -> CreateFrameworkDeploymentRequest
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 CreateFrameworkDeploymentRequest
impl Default for CreateFrameworkDeploymentRequest
Source§fn default() -> CreateFrameworkDeploymentRequest
fn default() -> CreateFrameworkDeploymentRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateFrameworkDeploymentRequest
impl PartialEq for CreateFrameworkDeploymentRequest
Source§fn eq(&self, other: &CreateFrameworkDeploymentRequest) -> bool
fn eq(&self, other: &CreateFrameworkDeploymentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateFrameworkDeploymentRequest
Auto Trait Implementations§
impl Freeze for CreateFrameworkDeploymentRequest
impl RefUnwindSafe for CreateFrameworkDeploymentRequest
impl Send for CreateFrameworkDeploymentRequest
impl Sync for CreateFrameworkDeploymentRequest
impl Unpin for CreateFrameworkDeploymentRequest
impl UnwindSafe for CreateFrameworkDeploymentRequest
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