pub enum AdifType {
Str(String),
Boolean(bool),
Number(f64),
Date(NaiveDate),
Time(NaiveTime),
}
Expand description
Supported datatypes for representing ADIF data
Variants§
Str(String)
Basic string type
Boolean(bool)
Basic boolean type
Number(f64)
Basic number type
Date(NaiveDate)
8 Digits representing a UTC date in YYYYMMDD
format, where
- YYYY is a 4-Digit year specifier, where 1930 <= YYYY
- MM is a 2-Digit month specifier, where 1 <= MM <= 12
- DD is a 2-Digit day specifier, where 1 <= DD <= DaysInMonth(MM)
Time(NaiveTime)
6 Digits representing a UTC time in HHMMSS format or 4 Digits representing a time in HHMM format, where:
- HH is a 2-Digit hour specifier, where 0 <= HH <= 23
- MM is a 2-Digit minute specifier, where 0 <= MM <= 59
- SS is a 2-Digit second specifier, where 0 <= SS <= 59
Implementations§
Trait Implementations§
source§impl PartialEq for AdifType
impl PartialEq for AdifType
impl StructuralPartialEq for AdifType
Auto Trait Implementations§
impl RefUnwindSafe for AdifType
impl Send for AdifType
impl Sync for AdifType
impl Unpin for AdifType
impl UnwindSafe for AdifType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more