pub struct DateDiffResult {
pub years: i32,
pub months: i32,
pub days: i32,
}
Expand description
The result of the date_diff
function.
Fields§
§years: i32
§months: i32
§days: i32
Trait Implementations§
Source§impl Clone for DateDiffResult
impl Clone for DateDiffResult
Source§fn clone(&self) -> DateDiffResult
fn clone(&self) -> DateDiffResult
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 DateTimeDiff for DateDiffResult
impl DateTimeDiff for DateDiffResult
Source§impl Debug for DateDiffResult
impl Debug for DateDiffResult
Source§impl Default for DateDiffResult
impl Default for DateDiffResult
Source§fn default() -> DateDiffResult
fn default() -> DateDiffResult
Returns the “default value” for a type. Read more
Source§impl From<DateDiffResult> for DateTimeDiffResult
impl From<DateDiffResult> for DateTimeDiffResult
Source§fn from(value: DateDiffResult) -> Self
fn from(value: DateDiffResult) -> Self
Converts to this type from the input type.
Source§impl From<DateTimeDiffResult> for DateDiffResult
impl From<DateTimeDiffResult> for DateDiffResult
Source§fn from(value: DateTimeDiffResult) -> Self
fn from(value: DateTimeDiffResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DateDiffResult
impl PartialEq for DateDiffResult
impl Eq for DateDiffResult
impl StructuralPartialEq for DateDiffResult
Auto Trait Implementations§
impl Freeze for DateDiffResult
impl RefUnwindSafe for DateDiffResult
impl Send for DateDiffResult
impl Sync for DateDiffResult
impl Unpin for DateDiffResult
impl UnwindSafe for DateDiffResult
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