pub struct DateRange {
pub from: Option<DateTime<Utc>>,
pub to: Option<DateTime<Utc>>,
}Fields§
§from: Option<DateTime<Utc>>§to: Option<DateTime<Utc>>Implementations§
Source§impl DateRange
impl DateRange
pub fn default_sync_window() -> Self
pub fn sync_window_at<Tz: TimeZone>(today: NaiveDate, tz: Tz) -> Self
Sourcepub fn to_rfc3339(&self) -> (String, String)
pub fn to_rfc3339(&self) -> (String, String)
RFC3339 (from, to), substituting sentinel deep-past/deep-future timestamps when unbounded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DateRange
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnsafeUnpin 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