pub struct GooglePrivacyDlpV2LikelihoodAdjustment {
pub fixed_likelihood: Option<String>,
pub relative_likelihood: Option<i32>,
}Expand description
Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.
This type is not used in any activity, and only used as part of another schema.
Fields§
§fixed_likelihood: Option<String>Set the likelihood of a finding to a fixed value.
relative_likelihood: Option<i32>Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relative_likelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY.
Trait Implementations§
Source§impl Clone for GooglePrivacyDlpV2LikelihoodAdjustment
impl Clone for GooglePrivacyDlpV2LikelihoodAdjustment
Source§fn clone(&self) -> GooglePrivacyDlpV2LikelihoodAdjustment
fn clone(&self) -> GooglePrivacyDlpV2LikelihoodAdjustment
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 GooglePrivacyDlpV2LikelihoodAdjustment
impl Default for GooglePrivacyDlpV2LikelihoodAdjustment
Source§fn default() -> GooglePrivacyDlpV2LikelihoodAdjustment
fn default() -> GooglePrivacyDlpV2LikelihoodAdjustment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GooglePrivacyDlpV2LikelihoodAdjustment
impl<'de> Deserialize<'de> for GooglePrivacyDlpV2LikelihoodAdjustment
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
impl Part for GooglePrivacyDlpV2LikelihoodAdjustment
Auto Trait Implementations§
impl Freeze for GooglePrivacyDlpV2LikelihoodAdjustment
impl RefUnwindSafe for GooglePrivacyDlpV2LikelihoodAdjustment
impl Send for GooglePrivacyDlpV2LikelihoodAdjustment
impl Sync for GooglePrivacyDlpV2LikelihoodAdjustment
impl Unpin for GooglePrivacyDlpV2LikelihoodAdjustment
impl UnwindSafe for GooglePrivacyDlpV2LikelihoodAdjustment
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