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
15
16
use serde::{Deserialize, Serialize};

/// A classification describing the nature of an alert message.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub enum MessageType {
    /// Initial information requiring attention by targeted recipients
    Alert,
    /// Updates and supersedes the earlier message(s) identified in `references`
    Update,
    /// Cancels the earlier message(s) identified in `references`
    Cancel,
    /// Acknowledges receipt and acceptance of the message(s) identified in `references`
    Ack,
    /// Indicates rejection of the message(s) identified in `references`; explanation SHOULD appear in `note`
    Error,
}