pub struct DateInterval {
pub start: SystemTime,
pub end: SystemTime,
}Expand description
Represents a WeatherKit date interval.
Fields§
§start: SystemTimeMatches the WeatherKit start value.
end: SystemTimeMatches the WeatherKit end value.
Implementations§
Source§impl DateInterval
impl DateInterval
Sourcepub fn new(start: SystemTime, end: SystemTime) -> Result<Self, WeatherKitError>
pub fn new(start: SystemTime, end: SystemTime) -> Result<Self, WeatherKitError>
Creates a WeatherKit date interval after validating its bounds.
Trait Implementations§
Source§impl Clone for DateInterval
impl Clone for DateInterval
Source§fn clone(&self) -> DateInterval
fn clone(&self) -> DateInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DateInterval
impl Debug for DateInterval
Source§impl PartialEq for DateInterval
impl PartialEq for DateInterval
Source§fn eq(&self, other: &DateInterval) -> bool
fn eq(&self, other: &DateInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DateInterval
impl StructuralPartialEq for DateInterval
Auto Trait Implementations§
impl Freeze for DateInterval
impl RefUnwindSafe for DateInterval
impl Send for DateInterval
impl Sync for DateInterval
impl Unpin for DateInterval
impl UnsafeUnpin for DateInterval
impl UnwindSafe for DateInterval
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