#[non_exhaustive]pub struct ReferenceTime {
pub significance: u8,
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
}Expand description
When a field’s data starts: section 1’s reference time, in UTC as written.
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.significance: u8Code table 1.2: 0 analysis, 1 start of forecast, 2 verifying time, 3 observation time.
year: u16Year.
month: u8Month, 1 to 12.
day: u8Day, 1 to 31.
hour: u8Hour, 0 to 23.
minute: u8Minute.
second: u8Second.
Trait Implementations§
Source§impl Clone for ReferenceTime
impl Clone for ReferenceTime
Source§fn clone(&self) -> ReferenceTime
fn clone(&self) -> ReferenceTime
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 ReferenceTime
Source§impl Debug for ReferenceTime
impl Debug for ReferenceTime
Source§impl<'de> Deserialize<'de> for ReferenceTime
impl<'de> Deserialize<'de> for ReferenceTime
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 ReferenceTime
Source§impl PartialEq for ReferenceTime
impl PartialEq for ReferenceTime
Source§fn eq(&self, other: &ReferenceTime) -> bool
fn eq(&self, other: &ReferenceTime) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReferenceTime
impl Serialize for ReferenceTime
impl StructuralPartialEq for ReferenceTime
Auto Trait Implementations§
impl Freeze for ReferenceTime
impl RefUnwindSafe for ReferenceTime
impl Send for ReferenceTime
impl Sync for ReferenceTime
impl Unpin for ReferenceTime
impl UnsafeUnpin for ReferenceTime
impl UnwindSafe for ReferenceTime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.