Enum dae_parser::MaybeDateTime
source · [−]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
sourceimpl Clone for MaybeDateTime
impl Clone for MaybeDateTime
sourcefn clone(&self) -> MaybeDateTime
fn clone(&self) -> MaybeDateTime
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MaybeDateTime
impl Debug for MaybeDateTime
sourceimpl Display for MaybeDateTime
impl Display for MaybeDateTime
sourceimpl From<DateTime<FixedOffset>> for MaybeDateTime
impl From<DateTime<FixedOffset>> for MaybeDateTime
sourcefn from(v: DateTime<FixedOffset>) -> Self
fn from(v: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for MaybeDateTime
impl Send for MaybeDateTime
impl Sync for MaybeDateTime
impl Unpin for MaybeDateTime
impl UnwindSafe for MaybeDateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more