#[non_exhaustive]pub struct SecurityPostureConfig {
pub mode: Option<Mode>,
pub vulnerability_mode: Option<VulnerabilityMode>,
/* private fields */
}Expand description
SecurityPostureConfig defines the flags needed to enable/disable features for the Security Posture API.
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.mode: Option<Mode>Sets which mode to use for Security Posture features.
vulnerability_mode: Option<VulnerabilityMode>Sets which mode to use for vulnerability scanning.
Implementations§
Source§impl SecurityPostureConfig
impl SecurityPostureConfig
pub fn new() -> Self
Sourcepub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
Sets or clears the value of mode.
Sourcepub fn set_vulnerability_mode<T>(self, v: T) -> Selfwhere
T: Into<VulnerabilityMode>,
pub fn set_vulnerability_mode<T>(self, v: T) -> Selfwhere
T: Into<VulnerabilityMode>,
Sets the value of vulnerability_mode.
Sourcepub fn set_or_clear_vulnerability_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<VulnerabilityMode>,
pub fn set_or_clear_vulnerability_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<VulnerabilityMode>,
Sets or clears the value of vulnerability_mode.
Trait Implementations§
Source§impl Clone for SecurityPostureConfig
impl Clone for SecurityPostureConfig
Source§fn clone(&self) -> SecurityPostureConfig
fn clone(&self) -> SecurityPostureConfig
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 SecurityPostureConfig
impl Debug for SecurityPostureConfig
Source§impl Default for SecurityPostureConfig
impl Default for SecurityPostureConfig
Source§fn default() -> SecurityPostureConfig
fn default() -> SecurityPostureConfig
Returns the “default value” for a type. Read more
Source§impl Message for SecurityPostureConfig
impl Message for SecurityPostureConfig
Source§impl PartialEq for SecurityPostureConfig
impl PartialEq for SecurityPostureConfig
impl StructuralPartialEq for SecurityPostureConfig
Auto Trait Implementations§
impl Freeze for SecurityPostureConfig
impl RefUnwindSafe for SecurityPostureConfig
impl Send for SecurityPostureConfig
impl Sync for SecurityPostureConfig
impl Unpin for SecurityPostureConfig
impl UnwindSafe for SecurityPostureConfig
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