Struct ct_tracker_lib::projects::project_frame::ProjectFrame [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for ProjectFrame
impl Send for ProjectFrame
impl Sync for ProjectFrame
impl Unpin for ProjectFrame
impl UnwindSafe for ProjectFrame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,