pub struct ValidPeriod {
pub start: DateTime<Utc>,
pub end: DateTime<Utc>,
}Expand description
A validity window, e.g. a TAF’s forecast period 0418/0524.
Fields§
§start: DateTime<Utc>Start of the window.
end: DateTime<Utc>End of the window.
Implementations§
Trait Implementations§
Source§impl Clone for ValidPeriod
impl Clone for ValidPeriod
Source§fn clone(&self) -> ValidPeriod
fn clone(&self) -> ValidPeriod
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 moreimpl Copy for ValidPeriod
Source§impl Debug for ValidPeriod
impl Debug for ValidPeriod
Source§impl<'de> Deserialize<'de> for ValidPeriod
impl<'de> Deserialize<'de> for ValidPeriod
Source§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
impl Eq for ValidPeriod
Source§impl PartialEq for ValidPeriod
impl PartialEq for ValidPeriod
Source§fn eq(&self, other: &ValidPeriod) -> bool
fn eq(&self, other: &ValidPeriod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidPeriod
impl Serialize for ValidPeriod
impl StructuralPartialEq for ValidPeriod
Auto Trait Implementations§
impl Freeze for ValidPeriod
impl RefUnwindSafe for ValidPeriod
impl Send for ValidPeriod
impl Sync for ValidPeriod
impl Unpin for ValidPeriod
impl UnsafeUnpin for ValidPeriod
impl UnwindSafe for ValidPeriod
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