pub struct DurationValue {
pub negative: bool,
pub years: u32,
pub months: u32,
pub days: u32,
pub hours: u32,
pub minutes: u32,
pub seconds: Decimal,
}Expand description
xs:duration value
Fields§
§negative: bool§years: u32§months: u32§days: u32§hours: u32§minutes: u32§seconds: DecimalTrait Implementations§
Source§impl Clone for DurationValue
impl Clone for DurationValue
Source§fn clone(&self) -> DurationValue
fn clone(&self) -> DurationValue
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 moreSource§impl Debug for DurationValue
impl Debug for DurationValue
Source§impl Display for DurationValue
impl Display for DurationValue
Source§impl PartialEq for DurationValue
impl PartialEq for DurationValue
Source§fn eq(&self, other: &DurationValue) -> bool
fn eq(&self, other: &DurationValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DurationValue
impl PartialOrd for DurationValue
impl StructuralPartialEq for DurationValue
Auto Trait Implementations§
impl Freeze for DurationValue
impl RefUnwindSafe for DurationValue
impl Send for DurationValue
impl Sync for DurationValue
impl Unpin for DurationValue
impl UnsafeUnpin for DurationValue
impl UnwindSafe for DurationValue
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