#[non_exhaustive]pub struct SecurityPostureConfig {
pub mode: Option<Mode>,
pub vulnerability_mode: Option<VulnerabilityMode>,
}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
Sourcepub fn set_vulnerability_mode<T: Into<Option<VulnerabilityMode>>>(
self,
v: T,
) -> Self
pub fn set_vulnerability_mode<T: Into<Option<VulnerabilityMode>>>( self, v: T, ) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for SecurityPostureConfigwhere
SecurityPostureConfig: Default,
impl<'de> Deserialize<'de> for SecurityPostureConfigwhere
SecurityPostureConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SecurityPostureConfig
impl Message for SecurityPostureConfig
Source§impl PartialEq for SecurityPostureConfig
impl PartialEq for SecurityPostureConfig
Source§impl Serialize for SecurityPostureConfig
impl Serialize 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