Struct xmp_toolkit::XmpDateTime
source · [−]pub struct XmpDateTime { /* private fields */ }
Expand description
The expanded type for a date and time.
Dates and time in the serialized XMP are ISO 8601 strings.
The XmpDateTime
struct allows easy conversion with other formats.
Implementations
sourceimpl XmpDateTime
impl XmpDateTime
sourcepub fn new() -> XmpDateTime
pub fn new() -> XmpDateTime
Creates a new date-time struct with zeros in all fields.
sourcepub fn current() -> XmpDateTime
pub fn current() -> XmpDateTime
Creates a new date-time struct reflecting the current time.
Trait Implementations
sourceimpl Default for XmpDateTime
impl Default for XmpDateTime
Auto Trait Implementations
impl RefUnwindSafe for XmpDateTime
impl !Send for XmpDateTime
impl !Sync for XmpDateTime
impl Unpin for XmpDateTime
impl UnwindSafe for XmpDateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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