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

/// The intended distribution scope of an alert message
#[derive(Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub enum Scope {
    /// For general dissemination to unrestricted audiences
    Public,
    /// For dissemination only to users with a known operational requirement (see `restriction`)
    Restricted,
    /// For dissemination only to specified addresses (see `addresses`)
    Private,
}