pub struct Kind {
pub name: String,
pub doc: String,
pub storage: String,
pub fields: Vec<Field>,
}Expand description
One kind of record.
Fields§
§name: StringSingular kind name — also the Link kind (person, meeting, …).
doc: StringKind-level doc: what this is AND the existence bar (curation intent).
storage: StringStorage pattern relative to the KB root, placeholders in {}
(e.g. facts/people/{id}.ron, facts/checkins/{person}/{date}.ron).
fields: Vec<Field>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
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 Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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