Expand description

Types for CAP v1.2.

Some of the types in this module are re-exported from the v1dot0 and v1dot1 modules, since they did not change between specifications.

Example

let alert: oasiscap::v1dot2::Alert = r#"
<?xml version = "1.0" encoding = "UTF-8"?>
<alert xmlns = "urn:oasis:names:tc:emergency:cap:1.2">
  <identifier>43b080713727</identifier>
  <sender>hsas@dhs.gov</sender>
  <sent>2003-04-02T14:39:01-05:00</sent>
  <status>Actual</status>
  <msgType>Alert</msgType>
  <scope>Public</scope>
  <info>
    <!-- … -->
  </info>
</alert>
"#.parse().expect("parse CAP");

assert_eq!(alert.identifier, "43b080713727");

Structs

A CAP v1.2 alert message.

Geographical (and usually also geospatial) information describing the expected or actual location of the event.

Information about anticipated or actual event.

A reference to additional information related to an event, in the form of a digital asset such as an image or audio file.

Enums

General categories into which an alert may be classified.

The confidence in an observation or prediction.

A classification describing the nature of an alert message.

The recommended type of action for the target audience.

The intended distribution scope of an alert message

The expected impact of an alert to those it may affect.

The intended handling of an alert message.

The time-sensitivity of an alert.

Type Definitions

A CAP v1.2 key-value map.