[][src]Struct rtw::Activity

pub struct Activity { /* fields omitted */ }

A finished activity (with a stop time)

Methods

impl Activity[src]

pub fn get_start_time(&self) -> DateTimeW[src]

start time getter

pub fn get_stop_time(&self) -> DateTimeW[src]

stop time getter

pub fn get_duration(&self) -> DurationW[src]

Return activity duration

pub fn get_title(&self) -> String[src]

Return activity title (its tags joined by a space)

pub fn get_tags(&self) -> Tags[src]

Return tags

Trait Implementations

impl Clone for Activity[src]

impl Debug for Activity[src]

impl<'de> Deserialize<'de> for Activity[src]

impl Eq for Activity[src]

impl Ord for Activity[src]

Activities are sorted by start time

impl PartialEq<Activity> for Activity[src]

impl PartialOrd<Activity> for Activity[src]

impl Serialize for Activity[src]

impl StructuralEq for Activity[src]

impl StructuralPartialEq for Activity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.