pub struct Entry {
pub container: LazyContainer,
pub uid: String,
pub sections: Option<Box<[Section]>>,
pub title: Option<String>,
pub description: Option<String>,
pub tags: Option<Box<[String]>>,
pub notes: Option<Box<[String]>>,
pub date: Option<[u16; 3]>,
}Fields§
§container: LazyContainer§uid: String§sections: Option<Box<[Section]>>§title: Option<String>§description: Option<String>§notes: Option<Box<[String]>>§date: Option<[u16; 3]>Date goes from day to month then to year
Implementations§
Source§impl Entry
impl Entry
pub fn new( table: Table, entry_path: &str, database: LazyContainer, logger: impl Logger, ) -> Self
pub fn pull( &mut self, path: &Path, one_file: bool, logger: impl Logger, ) -> Table
pub fn store_lazy(&self, logger: impl Logger)
pub fn load_lazy(uid: String, container: LazyContainer) -> Self
pub fn clear_cache(&mut self)
pub fn fill_cache(&mut self, logger: impl Logger)
pub fn title(&mut self, logger: impl Logger) -> &mut String
pub fn description(&mut self, logger: impl Logger) -> &mut String
pub fn notes(&mut self, logger: impl Logger) -> &mut Box<[String]>
pub fn date(&mut self, logger: impl Logger) -> &mut [u16; 3]
pub fn sections(&mut self, logger: impl Logger) -> &mut Box<[Section]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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