#[non_exhaustive]pub struct CreatePostureDeploymentRequest {
pub parent: String,
pub posture_deployment_id: String,
pub posture_deployment: Option<PostureDeployment>,
/* private fields */
}Expand description
Message for creating a PostureDeployment.
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. Value for parent. Format: organizations/{org_id}/locations/{location}
posture_deployment_id: StringRequired. User provided identifier. It should be unique in scope of an Organization and location.
posture_deployment: Option<PostureDeployment>Required. The resource being created.
Implementations§
Source§impl CreatePostureDeploymentRequest
impl CreatePostureDeploymentRequest
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_posture_deployment_id<T: Into<String>>(self, v: T) -> Self
pub fn set_posture_deployment_id<T: Into<String>>(self, v: T) -> Self
Sets the value of posture_deployment_id.
§Example
ⓘ
let x = CreatePostureDeploymentRequest::new().set_posture_deployment_id("example");Sourcepub fn set_posture_deployment<T>(self, v: T) -> Selfwhere
T: Into<PostureDeployment>,
pub fn set_posture_deployment<T>(self, v: T) -> Selfwhere
T: Into<PostureDeployment>,
Sets the value of posture_deployment.
§Example
ⓘ
use google_cloud_securityposture_v1::model::PostureDeployment;
let x = CreatePostureDeploymentRequest::new().set_posture_deployment(PostureDeployment::default()/* use setters */);Sourcepub fn set_or_clear_posture_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostureDeployment>,
pub fn set_or_clear_posture_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostureDeployment>,
Sets or clears the value of posture_deployment.
§Example
ⓘ
use google_cloud_securityposture_v1::model::PostureDeployment;
let x = CreatePostureDeploymentRequest::new().set_or_clear_posture_deployment(Some(PostureDeployment::default()/* use setters */));
let x = CreatePostureDeploymentRequest::new().set_or_clear_posture_deployment(None::<PostureDeployment>);Trait Implementations§
Source§impl Clone for CreatePostureDeploymentRequest
impl Clone for CreatePostureDeploymentRequest
Source§fn clone(&self) -> CreatePostureDeploymentRequest
fn clone(&self) -> CreatePostureDeploymentRequest
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 CreatePostureDeploymentRequest
impl Default for CreatePostureDeploymentRequest
Source§fn default() -> CreatePostureDeploymentRequest
fn default() -> CreatePostureDeploymentRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreatePostureDeploymentRequest
impl PartialEq for CreatePostureDeploymentRequest
Source§fn eq(&self, other: &CreatePostureDeploymentRequest) -> bool
fn eq(&self, other: &CreatePostureDeploymentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreatePostureDeploymentRequest
Auto Trait Implementations§
impl Freeze for CreatePostureDeploymentRequest
impl RefUnwindSafe for CreatePostureDeploymentRequest
impl Send for CreatePostureDeploymentRequest
impl Sync for CreatePostureDeploymentRequest
impl Unpin for CreatePostureDeploymentRequest
impl UnwindSafe for CreatePostureDeploymentRequest
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