pub struct DateDurationRecord {
pub years: u32,
pub months: u32,
pub weeks: u32,
pub days: u64,
}Expand description
A DateDurationRecord represents the result of parsing the date component of a Duration string.
Fields§
§years: u32Years value.
months: u32Months value.
weeks: u32Weeks value.
days: u64Days value.
Trait Implementations§
Source§impl Clone for DateDurationRecord
impl Clone for DateDurationRecord
Source§fn clone(&self) -> DateDurationRecord
fn clone(&self) -> DateDurationRecord
Returns a duplicate 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