pub enum MaybeDateTime {
Ok(DateTime<FixedOffset>),
Error(String),
}
Expand description
Collada spec says that created
and modified
times should follow ISO 8601,
but chrono
asserts that this means that timezones are required and Blender
doesn’t seem to add them. To avoid crashing, we store the unparsed date as a string.
Variants§
Ok(DateTime<FixedOffset>)
A proper ISO 8601 date-time.
Error(String)
A date-time that failed to parse.
Trait Implementations§
Source§impl Clone for MaybeDateTime
impl Clone for MaybeDateTime
Source§fn clone(&self) -> MaybeDateTime
fn clone(&self) -> MaybeDateTime
Returns a copy of the value. Read more
1.0.0 · 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 MaybeDateTime
impl Debug for MaybeDateTime
Source§impl Display for MaybeDateTime
impl Display for MaybeDateTime
Source§impl From<DateTime<FixedOffset>> for MaybeDateTime
impl From<DateTime<FixedOffset>> for MaybeDateTime
Source§fn from(v: DateTime<FixedOffset>) -> Self
fn from(v: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MaybeDateTime
impl RefUnwindSafe for MaybeDateTime
impl Send for MaybeDateTime
impl Sync for MaybeDateTime
impl Unpin for MaybeDateTime
impl UnwindSafe for MaybeDateTime
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