Struct oldnav_lib::navdata::database::CycleInfo [] [src]

pub struct CycleInfo {
    pub airac_cycle: i32,
    pub version: i32,
    pub valid_from: DateTime<UTC>,
    pub valid_to: DateTime<UTC>,
    pub message: String,
}

AIRAC Cycle Info

Examples

let db = Database::new(PathBuf::new(), PathBuf::new());
let cycle_info = &db.cycle_info;

println!("airac cycle number: {}", cycle_info.airac_cycle);

Fields

airac_cycle: i32

The cycle number

version: i32

Version of the cycle format?

valid_from: DateTime<UTC>

The date this cycle comes into effect (and becomes valid)

valid_to: DateTime<UTC>

The date after which this cycle expires and becomes invalid

message: String

Message embedded with the cycle data

Methods

impl CycleInfo
[src]

fn new(airac_cycle: i32, version: i32, valid_from: DateTime<UTC>, valid_to: DateTime<UTC>, message: String) -> CycleInfo

Constructor for CycleInfo

Trait Implementations

impl Debug for CycleInfo
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.