Skip to main content

date_element

Macro date_element 

Source
macro_rules! date_element {
    ($(#[$meta:meta])* $name:ident) => { ... };
}
Expand description

Define an X12 date data element (format CCYYMMDD).

The element stores the raw 8-char text (so Display reproduces it exactly and it round-trips byte-for-byte) and exposes a typed chrono::NaiveDate view via date(). Naming follows the X12 element number (e.g. E373, E109).