Struct ixdtf::parsers::records::DateDurationRecord
source · pub struct DateDurationRecord {
pub years: u32,
pub months: u32,
pub weeks: u32,
pub days: u32,
}
Expand description
A DateDurationRecord
represents the result of parsing the date component of a Duration string.
Fields§
§years: u32
Years value.
months: u32
Months value.
weeks: u32
Weeks value.
days: u32
Days value.
Trait Implementations§
source§impl Clone for DateDurationRecord
impl Clone for DateDurationRecord
source§fn clone(&self) -> DateDurationRecord
fn clone(&self) -> DateDurationRecord
Returns a copy of the value. Read more
1.0.0 · 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 DateDurationRecord
impl Debug for DateDurationRecord
source§impl Default for DateDurationRecord
impl Default for DateDurationRecord
source§fn default() -> DateDurationRecord
fn default() -> DateDurationRecord
Returns the “default value” for a type. Read more
source§impl PartialEq for DateDurationRecord
impl PartialEq for DateDurationRecord
impl Copy for DateDurationRecord
impl StructuralPartialEq for DateDurationRecord
Auto Trait Implementations§
impl Freeze for DateDurationRecord
impl RefUnwindSafe for DateDurationRecord
impl Send for DateDurationRecord
impl Sync for DateDurationRecord
impl Unpin for DateDurationRecord
impl UnwindSafe for DateDurationRecord
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)