#[non_exhaustive]pub struct CreateMuteConfigRequest {
pub parent: String,
pub mute_config: Option<MuteConfig>,
pub mute_config_id: String,
/* private fields */
}Expand description
Request message for creating a mute 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.parent: StringRequired. Resource name of the new mute configs’s parent. Its format is
organizations/[organization_id]/locations/[location_id],
folders/[folder_id]/locations/[location_id], or
projects/[project_id]/locations/[location_id].
mute_config: Option<MuteConfig>Required. The mute config being created.
mute_config_id: StringRequired. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
Implementations§
Source§impl CreateMuteConfigRequest
impl CreateMuteConfigRequest
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_mute_config<T>(self, v: T) -> Selfwhere
T: Into<MuteConfig>,
pub fn set_mute_config<T>(self, v: T) -> Selfwhere
T: Into<MuteConfig>,
Sets the value of mute_config.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::MuteConfig;
let x = CreateMuteConfigRequest::new().set_mute_config(MuteConfig::default()/* use setters */);Sourcepub fn set_or_clear_mute_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MuteConfig>,
pub fn set_or_clear_mute_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MuteConfig>,
Sets or clears the value of mute_config.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::MuteConfig;
let x = CreateMuteConfigRequest::new().set_or_clear_mute_config(Some(MuteConfig::default()/* use setters */));
let x = CreateMuteConfigRequest::new().set_or_clear_mute_config(None::<MuteConfig>);Sourcepub fn set_mute_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_mute_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of mute_config_id.
§Example
ⓘ
let x = CreateMuteConfigRequest::new().set_mute_config_id("example");Trait Implementations§
Source§impl Clone for CreateMuteConfigRequest
impl Clone for CreateMuteConfigRequest
Source§fn clone(&self) -> CreateMuteConfigRequest
fn clone(&self) -> CreateMuteConfigRequest
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 CreateMuteConfigRequest
impl Debug for CreateMuteConfigRequest
Source§impl Default for CreateMuteConfigRequest
impl Default for CreateMuteConfigRequest
Source§fn default() -> CreateMuteConfigRequest
fn default() -> CreateMuteConfigRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateMuteConfigRequest
impl Message for CreateMuteConfigRequest
Source§impl PartialEq for CreateMuteConfigRequest
impl PartialEq for CreateMuteConfigRequest
impl StructuralPartialEq for CreateMuteConfigRequest
Auto Trait Implementations§
impl Freeze for CreateMuteConfigRequest
impl RefUnwindSafe for CreateMuteConfigRequest
impl Send for CreateMuteConfigRequest
impl Sync for CreateMuteConfigRequest
impl Unpin for CreateMuteConfigRequest
impl UnwindSafe for CreateMuteConfigRequest
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