Struct pace_core::BeginDateTime
source · pub struct BeginDateTime(/* private fields */);Expand description
Wrapper for the start time of an activity to implement default
Implementations§
source§impl BeginDateTime
impl BeginDateTime
pub fn new(time: NaiveDateTime) -> Self
sourcepub fn naive_date_time(&self) -> NaiveDateTime
pub fn naive_date_time(&self) -> NaiveDateTime
Convert to a naive date time
pub fn and_local_timezone<Tz: TimeZone>( &self, tz: Tz ) -> LocalResult<DateTime<Tz>>
Trait Implementations§
source§impl Clone for BeginDateTime
impl Clone for BeginDateTime
source§fn clone(&self) -> BeginDateTime
fn clone(&self) -> BeginDateTime
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 moresource§impl Debug for BeginDateTime
impl Debug for BeginDateTime
source§impl Default for BeginDateTime
impl Default for BeginDateTime
source§impl<'de> Deserialize<'de> for BeginDateTime
impl<'de> Deserialize<'de> for BeginDateTime
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for BeginDateTime
impl Display for BeginDateTime
source§impl From<NaiveDateTime> for BeginDateTime
impl From<NaiveDateTime> for BeginDateTime
source§fn from(time: NaiveDateTime) -> Self
fn from(time: NaiveDateTime) -> Self
Converts to this type from the input type.
source§impl From<Option<NaiveDateTime>> for BeginDateTime
impl From<Option<NaiveDateTime>> for BeginDateTime
source§fn from(time: Option<NaiveDateTime>) -> Self
fn from(time: Option<NaiveDateTime>) -> Self
Converts to this type from the input type.
source§impl PartialEq for BeginDateTime
impl PartialEq for BeginDateTime
source§fn eq(&self, other: &BeginDateTime) -> bool
fn eq(&self, other: &BeginDateTime) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BeginDateTime
impl Serialize for BeginDateTime
impl Copy for BeginDateTime
impl Eq for BeginDateTime
impl StructuralPartialEq for BeginDateTime
Auto Trait Implementations§
impl RefUnwindSafe for BeginDateTime
impl Send for BeginDateTime
impl Sync for BeginDateTime
impl Unpin for BeginDateTime
impl UnwindSafe for BeginDateTime
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.