#[non_exhaustive]pub struct NotificationRuleResponse {
pub data: Option<NotificationRule>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Response object which includes a notification rule.
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.data: Option<NotificationRule>
Notification rules allow full control over notifications generated by the various Datadog security products. They allow users to define the conditions under which a notification should be generated (based on rule severities, rule types, rule tags, and so on), and the targets to notify. A notification rule is composed of a rule ID, a rule type, and the rule attributes. All fields are required.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl NotificationRuleResponse
impl NotificationRuleResponse
pub fn new() -> NotificationRuleResponse
pub fn data(self, value: NotificationRule) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for NotificationRuleResponse
impl Clone for NotificationRuleResponse
Source§fn clone(&self) -> NotificationRuleResponse
fn clone(&self) -> NotificationRuleResponse
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 NotificationRuleResponse
impl Debug for NotificationRuleResponse
Source§impl Default for NotificationRuleResponse
impl Default for NotificationRuleResponse
Source§impl<'de> Deserialize<'de> for NotificationRuleResponse
impl<'de> Deserialize<'de> for NotificationRuleResponse
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 NotificationRuleResponse
impl PartialEq for NotificationRuleResponse
Source§impl Serialize for NotificationRuleResponse
impl Serialize for NotificationRuleResponse
impl StructuralPartialEq for NotificationRuleResponse
Auto Trait Implementations§
impl Freeze for NotificationRuleResponse
impl RefUnwindSafe for NotificationRuleResponse
impl Send for NotificationRuleResponse
impl Sync for NotificationRuleResponse
impl Unpin for NotificationRuleResponse
impl UnwindSafe for NotificationRuleResponse
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