pub struct Diary { /* private fields */ }Implementations§
Source§impl Diary
impl Diary
pub fn new( prefix: &str, diary_path: &Path, file_type: &str, ) -> Result<Box<Self>, DiaryError>
pub fn from_config(cfg: &Config) -> Result<Box<Self>, DiaryError>
pub const fn prefix(&self) -> &String
pub const fn diary_path(&self) -> &PathBuf
pub const fn file_type(&self) -> &EntryFileType
pub fn file_name(&self, date: &DateTime<Local>) -> PathBuf
pub fn get_entry_path(&self, date: &DateTime<Local>) -> PathBuf
pub fn get_entry_file(&self, date: &DateTime<Local>) -> Result<File>
Auto Trait Implementations§
impl Freeze for Diary
impl RefUnwindSafe for Diary
impl Send for Diary
impl Sync for Diary
impl Unpin for Diary
impl UnwindSafe for Diary
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