pub enum ClientDateTimeRecord {
Parsed(DateTime<FixedOffset>),
Interpolated {
value: DateTime<FixedOffset>,
raw: String,
},
}Expand description
A Record to store the local date/time, as provided by a flora client.
Variants§
Parsed(DateTime<FixedOffset>)
The naive date/time (without any time zone information).
Interpolated
The local time of the flora instance, if we couldn’t parse the one given by the client.
Fields
§
value: DateTime<FixedOffset>The interpolated date time value.
Implementations§
Trait Implementations§
Source§impl Clone for ClientDateTimeRecord
impl Clone for ClientDateTimeRecord
Source§fn clone(&self) -> ClientDateTimeRecord
fn clone(&self) -> ClientDateTimeRecord
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 ClientDateTimeRecord
impl Debug for ClientDateTimeRecord
Source§impl Display for ClientDateTimeRecord
impl Display for ClientDateTimeRecord
Source§impl PartialEq for ClientDateTimeRecord
impl PartialEq for ClientDateTimeRecord
Source§fn eq(&self, other: &ClientDateTimeRecord) -> bool
fn eq(&self, other: &ClientDateTimeRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientDateTimeRecord
Auto Trait Implementations§
impl Freeze for ClientDateTimeRecord
impl RefUnwindSafe for ClientDateTimeRecord
impl Send for ClientDateTimeRecord
impl Sync for ClientDateTimeRecord
impl Unpin for ClientDateTimeRecord
impl UnsafeUnpin for ClientDateTimeRecord
impl UnwindSafe for ClientDateTimeRecord
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