pub struct Project { /* private fields */ }
Implementations§
Source§impl Project
impl Project
Sourcepub fn initial_date(&self) -> &DateTime<Utc>
pub fn initial_date(&self) -> &DateTime<Utc>
Get a reference to the project’s initial date.
pub fn json(&self, pretty: bool) -> CtResult<String>
pub fn is_open(&self) -> bool
pub fn duration(&self) -> Duration
pub fn session_count(&self) -> usize
pub fn load(path: &PathBuf) -> CtResult<Project>
pub fn load_from_name(name: &str) -> CtResult<Project>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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