#[non_exhaustive]pub struct MuteInfo {
pub static_mute: Option<StaticMute>,
pub dynamic_mute_records: Vec<DynamicMuteRecord>,
/* private fields */
}Expand description
Mute information about the finding, including whether the finding has a static mute or any matching dynamic mute rules.
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.static_mute: Option<StaticMute>If set, the static mute applied to this finding. Static mutes override dynamic mutes. If unset, there is no static mute.
dynamic_mute_records: Vec<DynamicMuteRecord>The list of dynamic mute rules that currently match the finding.
Implementations§
Source§impl MuteInfo
impl MuteInfo
pub fn new() -> Self
Sourcepub fn set_static_mute<T>(self, v: T) -> Selfwhere
T: Into<StaticMute>,
pub fn set_static_mute<T>(self, v: T) -> Selfwhere
T: Into<StaticMute>,
Sets the value of static_mute.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::finding::mute_info::StaticMute;
let x = MuteInfo::new().set_static_mute(StaticMute::default()/* use setters */);Sourcepub fn set_or_clear_static_mute<T>(self, v: Option<T>) -> Selfwhere
T: Into<StaticMute>,
pub fn set_or_clear_static_mute<T>(self, v: Option<T>) -> Selfwhere
T: Into<StaticMute>,
Sets or clears the value of static_mute.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::finding::mute_info::StaticMute;
let x = MuteInfo::new().set_or_clear_static_mute(Some(StaticMute::default()/* use setters */));
let x = MuteInfo::new().set_or_clear_static_mute(None::<StaticMute>);Sourcepub fn set_dynamic_mute_records<T, V>(self, v: T) -> Self
pub fn set_dynamic_mute_records<T, V>(self, v: T) -> Self
Sets the value of dynamic_mute_records.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::finding::mute_info::DynamicMuteRecord;
let x = MuteInfo::new()
.set_dynamic_mute_records([
DynamicMuteRecord::default()/* use setters */,
DynamicMuteRecord::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for MuteInfo
Auto Trait Implementations§
impl Freeze for MuteInfo
impl RefUnwindSafe for MuteInfo
impl Send for MuteInfo
impl Sync for MuteInfo
impl Unpin for MuteInfo
impl UnwindSafe for MuteInfo
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