oasiscap 0.2.0

Types for the OASIS Common Alerting Protocol (CAP)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

/// The intended handling of an alert message.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub enum Status {
    /// Actionable by all targeted recipients
    Actual,
    /// Actionable only by designated exercise participants; exercise identifier SHOULD appear in `note`
    Exercise,
    /// For messages that support alert network internal functions
    System,
    /// Technical testing only, all recipients disregard
    Test,
}