pub enum DataComponent {
LastUpdate,
ExpirationDate,
Hash,
}Expand description
Data that is required to exist exactly once in a leap-seconds.list file.
If that is not the case, an attempt to parse the file will result in a ParseFileError.
Variants§
LastUpdate
A line containing a timestamp when the file was updated last.
ExpirationDate
A timestamp at which the data in the file expires.
Hash
A hash of the data contained in the file.
Trait Implementations§
Source§impl Clone for DataComponent
impl Clone for DataComponent
Source§fn clone(&self) -> DataComponent
fn clone(&self) -> DataComponent
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§impl Debug for DataComponent
impl Debug for DataComponent
Source§impl Display for DataComponent
impl Display for DataComponent
Source§impl PartialEq for DataComponent
impl PartialEq for DataComponent
Source§fn eq(&self, other: &DataComponent) -> bool
fn eq(&self, other: &DataComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DataComponent
impl Eq for DataComponent
impl StructuralPartialEq for DataComponent
Auto Trait Implementations§
impl Freeze for DataComponent
impl RefUnwindSafe for DataComponent
impl Send for DataComponent
impl Sync for DataComponent
impl Unpin for DataComponent
impl UnsafeUnpin for DataComponent
impl UnwindSafe for DataComponent
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