pub struct MOC {
pub container: LazyContainer,
pub uid: String,
pub title: Option<String>,
pub description: Option<String>,
pub notes: Option<Box<[String]>>,
pub tags: Option<Box<[String]>>,
pub collections: Option<Box<[Collection]>>,
}Fields§
§container: LazyContainer§uid: String§title: Option<String>§description: Option<String>§notes: Option<Box<[String]>>§collections: Option<Box<[Collection]>>Implementations§
Source§impl MOC
impl MOC
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 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 collections(&mut self, logger: impl Logger) -> &mut Box<[Collection]>
pub fn new( table: Table, moc_path: &str, database: LazyContainer, logger: impl Logger, ) -> Self
pub fn pull(&mut self, logger: impl Logger) -> Table
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MOC
impl RefUnwindSafe for MOC
impl Send for MOC
impl Sync for MOC
impl Unpin for MOC
impl UnwindSafe for MOC
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