#[non_exhaustive]pub struct AlertEventCustomAttributes {
pub custom: Option<BTreeMap<String, Value>>,
pub links: Option<Vec<AlertEventCustomAttributesLinksItems>>,
pub priority: Option<AlertEventCustomAttributesPriority>,
pub status: AlertEventCustomAttributesStatus,
/* private fields */
}
Expand description
Alert event attributes.
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.custom: Option<BTreeMap<String, Value>>
Free form JSON object for arbitrary data. Supports up to 100 properties per object and a maximum nesting depth of 10 levels.
links: Option<Vec<AlertEventCustomAttributesLinksItems>>
The links related to the event. Maximum of 20 links allowed.
priority: Option<AlertEventCustomAttributesPriority>
The priority of the alert.
status: AlertEventCustomAttributesStatus
The status of the alert.
Implementations§
Source§impl AlertEventCustomAttributes
impl AlertEventCustomAttributes
pub fn new( status: AlertEventCustomAttributesStatus, ) -> AlertEventCustomAttributes
pub fn custom(self, value: BTreeMap<String, Value>) -> Self
pub fn links(self, value: Vec<AlertEventCustomAttributesLinksItems>) -> Self
pub fn priority(self, value: AlertEventCustomAttributesPriority) -> Self
Trait Implementations§
Source§impl Clone for AlertEventCustomAttributes
impl Clone for AlertEventCustomAttributes
Source§fn clone(&self) -> AlertEventCustomAttributes
fn clone(&self) -> AlertEventCustomAttributes
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 AlertEventCustomAttributes
impl Debug for AlertEventCustomAttributes
Source§impl<'de> Deserialize<'de> for AlertEventCustomAttributes
impl<'de> Deserialize<'de> for AlertEventCustomAttributes
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 StructuralPartialEq for AlertEventCustomAttributes
Auto Trait Implementations§
impl Freeze for AlertEventCustomAttributes
impl RefUnwindSafe for AlertEventCustomAttributes
impl Send for AlertEventCustomAttributes
impl Sync for AlertEventCustomAttributes
impl Unpin for AlertEventCustomAttributes
impl UnwindSafe for AlertEventCustomAttributes
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