#[non_exhaustive]pub struct RuleVersions {
pub changes: Option<Vec<RuleVersionUpdate>>,
pub rule: Option<SecurityMonitoringRuleResponse>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
A rule version with a list of updates.
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.changes: Option<Vec<RuleVersionUpdate>>
A list of changes.
rule: Option<SecurityMonitoringRuleResponse>
Create a new rule.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RuleVersions
impl RuleVersions
pub fn new() -> RuleVersions
pub fn changes(self, value: Vec<RuleVersionUpdate>) -> Self
pub fn rule(self, value: SecurityMonitoringRuleResponse) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for RuleVersions
impl Clone for RuleVersions
Source§fn clone(&self) -> RuleVersions
fn clone(&self) -> RuleVersions
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 RuleVersions
impl Debug for RuleVersions
Source§impl Default for RuleVersions
impl Default for RuleVersions
Source§impl<'de> Deserialize<'de> for RuleVersions
impl<'de> Deserialize<'de> for RuleVersions
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 PartialEq for RuleVersions
impl PartialEq for RuleVersions
Source§impl Serialize for RuleVersions
impl Serialize for RuleVersions
impl StructuralPartialEq for RuleVersions
Auto Trait Implementations§
impl Freeze for RuleVersions
impl RefUnwindSafe for RuleVersions
impl Send for RuleVersions
impl Sync for RuleVersions
impl Unpin for RuleVersions
impl UnwindSafe for RuleVersions
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