pub enum KindData {
Entity(EntityData),
Concept(ConceptData),
Synthesis(SynthesisData),
}Expand description
Kind-specific frontmatter fields. The kind: discriminator lives on this
enum so an entity is forced to carry type: and a synthesis is forced
to carry inputs: / question: (when present).
Variants§
Entity(EntityData)
kind: entity — required type:, optional aliases + relationships.
Concept(ConceptData)
kind: concept — optional relationships.
Synthesis(SynthesisData)
kind: synthesis — optional inputs: / question:.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KindData
impl<'de> Deserialize<'de> for KindData
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
impl StructuralPartialEq for KindData
Auto Trait Implementations§
impl Freeze for KindData
impl RefUnwindSafe for KindData
impl Send for KindData
impl Sync for KindData
impl Unpin for KindData
impl UnsafeUnpin for KindData
impl UnwindSafe for KindData
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