Enum dae_parser::MaybeDateTime [−][src]
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>)
Tuple Fields
0: DateTime<FixedOffset>
A proper ISO 8601 date-time.
Error(String)
Tuple Fields
0: String
A date-time that failed to parse.
Trait Implementations
Performs the conversion.
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
Mutably borrows from an owned value. Read more