Struct pace_core::ActivityEndOptions
source · pub struct ActivityEndOptions { /* private fields */ }Implementations§
source§impl ActivityEndOptions
impl ActivityEndOptions
sourcepub fn end(&self) -> &NaiveDateTime
pub fn end(&self) -> &NaiveDateTime
The end date and time of the activity
sourcepub fn duration(&self) -> &PaceDuration
pub fn duration(&self) -> &PaceDuration
The duration of the activity
source§impl ActivityEndOptions
impl ActivityEndOptions
pub fn new(end: NaiveDateTime, duration: PaceDuration) -> Self
Trait Implementations§
source§impl Clone for ActivityEndOptions
impl Clone for ActivityEndOptions
source§fn clone(&self) -> ActivityEndOptions
fn clone(&self) -> ActivityEndOptions
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 ActivityEndOptions
impl Debug for ActivityEndOptions
source§impl<'de> Deserialize<'de> for ActivityEndOptions
impl<'de> Deserialize<'de> for ActivityEndOptions
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 PartialEq for ActivityEndOptions
impl PartialEq for ActivityEndOptions
source§fn eq(&self, other: &ActivityEndOptions) -> bool
fn eq(&self, other: &ActivityEndOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ActivityEndOptions
impl Serialize for ActivityEndOptions
impl Eq for ActivityEndOptions
impl StructuralPartialEq for ActivityEndOptions
Auto Trait Implementations§
impl RefUnwindSafe for ActivityEndOptions
impl Send for ActivityEndOptions
impl Sync for ActivityEndOptions
impl Unpin for ActivityEndOptions
impl UnwindSafe for ActivityEndOptions
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.