pub struct DateRangeArgs { /* private fields */ }Expand description
Representation of the start and end date arguments for reports.
Implementations
sourceimpl DateRangeArgs
impl DateRangeArgs
sourcepub fn new(args: &[String]) -> Result<Self>
pub fn new(args: &[String]) -> Result<Self>
Create the DateRangeArgs from an array of strings.
Errors
- Return
Error::WrongDateOrderif the start date is not before the end date
Trait Implementations
sourceimpl DayFilter for DateRangeArgs
impl DayFilter for DateRangeArgs
sourceimpl Debug for DateRangeArgs
impl Debug for DateRangeArgs
sourceimpl PartialEq<DateRangeArgs> for DateRangeArgs
impl PartialEq<DateRangeArgs> for DateRangeArgs
sourcefn eq(&self, other: &DateRangeArgs) -> bool
fn eq(&self, other: &DateRangeArgs) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DateRangeArgs) -> bool
fn ne(&self, other: &DateRangeArgs) -> bool
This method tests for !=.
impl Eq for DateRangeArgs
impl StructuralEq for DateRangeArgs
impl StructuralPartialEq for DateRangeArgs
Auto Trait Implementations
impl RefUnwindSafe for DateRangeArgs
impl Send for DateRangeArgs
impl Sync for DateRangeArgs
impl Unpin for DateRangeArgs
impl UnwindSafe for DateRangeArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more