#[non_exhaustive]pub struct UpdateResourceValueConfigRequest {
pub resource_value_config: Option<ResourceValueConfig>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request message to update resource value config
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.resource_value_config: Option<ResourceValueConfig>Required. The resource value config being updated.
update_mask: Option<FieldMask>The list of fields to be updated. If empty all mutable fields will be updated.
To update nested fields, include the top level field in the mask For example, to update gcp_metadata.resource_type, include the “gcp_metadata” field mask
Implementations§
Source§impl UpdateResourceValueConfigRequest
impl UpdateResourceValueConfigRequest
pub fn new() -> Self
Sourcepub fn set_resource_value_config<T>(self, v: T) -> Selfwhere
T: Into<ResourceValueConfig>,
pub fn set_resource_value_config<T>(self, v: T) -> Selfwhere
T: Into<ResourceValueConfig>,
Sets the value of resource_value_config.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::ResourceValueConfig;
let x = UpdateResourceValueConfigRequest::new().set_resource_value_config(ResourceValueConfig::default()/* use setters */);Sourcepub fn set_or_clear_resource_value_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceValueConfig>,
pub fn set_or_clear_resource_value_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceValueConfig>,
Sets or clears the value of resource_value_config.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::ResourceValueConfig;
let x = UpdateResourceValueConfigRequest::new().set_or_clear_resource_value_config(Some(ResourceValueConfig::default()/* use setters */));
let x = UpdateResourceValueConfigRequest::new().set_or_clear_resource_value_config(None::<ResourceValueConfig>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateResourceValueConfigRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateResourceValueConfigRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateResourceValueConfigRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateResourceValueConfigRequest
impl Clone for UpdateResourceValueConfigRequest
Source§fn clone(&self) -> UpdateResourceValueConfigRequest
fn clone(&self) -> UpdateResourceValueConfigRequest
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 UpdateResourceValueConfigRequest
impl Default for UpdateResourceValueConfigRequest
Source§fn default() -> UpdateResourceValueConfigRequest
fn default() -> UpdateResourceValueConfigRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateResourceValueConfigRequest
impl PartialEq for UpdateResourceValueConfigRequest
Source§fn eq(&self, other: &UpdateResourceValueConfigRequest) -> bool
fn eq(&self, other: &UpdateResourceValueConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateResourceValueConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateResourceValueConfigRequest
impl RefUnwindSafe for UpdateResourceValueConfigRequest
impl Send for UpdateResourceValueConfigRequest
impl Sync for UpdateResourceValueConfigRequest
impl Unpin for UpdateResourceValueConfigRequest
impl UnwindSafe for UpdateResourceValueConfigRequest
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