pub struct Message {
pub ttaaii: String,
pub cccc: String,
pub awips_id: Option<String>,
pub issue: DateTime<FixedOffset>,
pub id: String,
pub delay_stamp: Option<DateTime<FixedOffset>>,
pub ldm_sequence_number: Option<u32>,
pub message: String,
}Expand description
A message received from NWWS-OI.
See the NWS Communications Header Policy Document for information about how to interpret this data.
Fields§
§ttaaii: StringThe six character WMO product ID
cccc: StringFour character issuing center
awips_id: Option<String>The six character AWIPS ID, sometimes called AFOS PIL
issue: DateTime<FixedOffset>The time at which this product was issued
id: StringA unique ID for this message
The id contains two numbers separated by a period. The first number is the UNIX process ID on the system running the ingest process. The second number is a simple incremented sequence number for the product. Gaps in the sequence likely indicate message loss.
delay_stamp: Option<DateTime<FixedOffset>>The time at which the message was originally sent by the NWS ingest process to the NWWS-OI XMPP server, if it differs substantially from the current time.
See XEP-0203 for more details.
ldm_sequence_number: Option<u32>The LDM sequence number assigned to this product.
[LDM documentation] states that this value is “[i]gnored by almost everything but existing due to tradition and history”. NWWS OI seems to always prepend such a sequence number to the message body; this crate parses it out and places it here.
message: StringThe contents of the message