#[non_exhaustive]pub struct NavDataCycle {
pub authority: NavDataAuthority,
pub effective_on: NaiveDate,
pub next_effective_on: NaiveDate,
pub source: String,
}Expand description
Publication-cycle metadata for a navigation-data snapshot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Authority that published the data.
effective_on: NaiveDateFirst date this snapshot is effective.
next_effective_on: NaiveDateFirst date a successor cycle is effective.
source: StringURL or local product identifier used to create the snapshot.
Implementations§
Sourcepub fn faa_nasr(effective_on: NaiveDate) -> Result<Self, NavDataError>
pub fn faa_nasr(effective_on: NaiveDate) -> Result<Self, NavDataError>
FAA NASR cycle metadata from an effective date.
Sourcepub fn new(
authority: NavDataAuthority,
effective_on: NaiveDate,
cycle_days: u64,
source: impl Into<String>,
) -> Result<Self, NavDataError>
pub fn new( authority: NavDataAuthority, effective_on: NaiveDate, cycle_days: u64, source: impl Into<String>, ) -> Result<Self, NavDataError>
Cycle metadata from an authority, effective date, cycle length, and source identifier.
Trait Implementations§
Source§fn clone(&self) -> NavDataCycle
fn clone(&self) -> NavDataCycle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§fn eq(&self, other: &NavDataCycle) -> bool
fn eq(&self, other: &NavDataCycle) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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