Struct ct_tracker_lib::projects::project_frame::ProjectFrame[][src]

pub struct ProjectFrame { /* fields omitted */ }

Implementations

impl ProjectFrame[src]

pub fn load_or_create_from_name(name: &str) -> CtResult<ProjectFrame>[src]

pub fn load_from_name(name: &str) -> CtResult<ProjectFrame>[src]

pub fn start(&mut self) -> CtResult<()>[src]

pub fn stop(&mut self) -> CtResult<()>[src]

Methods from Deref<Target = Project>

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

Get a reference to the project’s name.

pub fn initial_date(&self) -> &DateTime<Utc>[src]

Get a reference to the project’s initial date.

pub fn sessions(&self) -> &Vec<Session>[src]

Get a reference to the project’s sessions.

pub fn json(&self, pretty: bool) -> CtResult<String>[src]

pub fn is_open(&self) -> bool[src]

pub fn duration(&self) -> Duration[src]

pub fn session_count(&self) -> usize[src]

Trait Implementations

impl Deref for ProjectFrame[src]

type Target = Project

The resulting type after dereferencing.

impl DerefMut for ProjectFrame[src]

impl Drop for ProjectFrame[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> From<T> for T[src]

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

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.