Struct date_range::DateTimeRange
source · pub struct DateTimeRange { /* private fields */ }
Implementations§
source§impl DateTimeRange
impl DateTimeRange
pub fn new(since: NaiveDateTime, until: NaiveDateTime) -> Result<Self, Error>
pub fn since(&self) -> NaiveDateTime
pub fn until(&self) -> NaiveDateTime
Trait Implementations§
source§impl Clone for DateTimeRange
impl Clone for DateTimeRange
source§fn clone(&self) -> DateTimeRange
fn clone(&self) -> DateTimeRange
Returns a copy 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 more