pub struct DateRange { /* private fields */ }
Implementations§
Source§impl DateRange
impl DateRange
pub fn new(since: NaiveDate, until: NaiveDate) -> Result<Self, Error>
pub fn from_timestamp( since: i64, until: i64, configuration: impl Into<Option<DateRangeFromTimestampConfiguration>>, ) -> Result<Self, Error>
pub fn since(&self) -> NaiveDate
pub fn until(&self) -> NaiveDate
pub fn since_datetime(&self) -> NaiveDateTime
pub fn until_datetime(&self) -> NaiveDateTime
pub fn prev(&self) -> Self
pub fn next(&self) -> Self
pub fn num_days(&self) -> usize
Trait Implementations§
Source§impl From<&DateRange> for DateTimeRange
impl From<&DateRange> for DateTimeRange
Source§impl From<DateRange> for DateTimeRange
impl From<DateRange> for DateTimeRange
Source§impl IntoIterator for &DateRange
impl IntoIterator for &DateRange
Source§impl IntoIterator for DateRange
impl IntoIterator for DateRange
impl Copy for DateRange
impl Eq for DateRange
impl StructuralPartialEq for DateRange
Auto Trait Implementations§
impl Freeze for DateRange
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnwindSafe for DateRange
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