pub struct XsdDuration {
pub months: i64,
pub seconds: i64,
pub nanos: u32,
}Expand description
xs:duration — split into a months part (years×12 + months) and a
seconds part (days×86400 + h×3600 + m×60 + s). This split is forced
by the spec: months cannot be reduced to seconds without a reference
date. Two durations compare equal only when both parts match.
Fields§
§months: i64§seconds: i64Whole seconds — combined with nanos for sub-second precision.
nanos: u32Trait Implementations§
Source§impl Clone for XsdDuration
impl Clone for XsdDuration
Source§fn clone(&self) -> XsdDuration
fn clone(&self) -> XsdDuration
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 moreimpl Copy for XsdDuration
Source§impl Debug for XsdDuration
impl Debug for XsdDuration
impl Eq for XsdDuration
Source§impl Hash for XsdDuration
impl Hash for XsdDuration
Source§impl PartialEq for XsdDuration
impl PartialEq for XsdDuration
Source§fn eq(&self, other: &XsdDuration) -> bool
fn eq(&self, other: &XsdDuration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XsdDuration
Auto Trait Implementations§
impl Freeze for XsdDuration
impl RefUnwindSafe for XsdDuration
impl Send for XsdDuration
impl Sync for XsdDuration
impl Unpin for XsdDuration
impl UnsafeUnpin for XsdDuration
impl UnwindSafe for XsdDuration
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