#[repr(u8)]pub enum SubstrateKind {
Note = 0,
Entity = 1,
Event = 2,
}Expand description
The 3 substrate types in khive OSS (ADR-004).
- Note: temporal-referential records (observations, insights, decisions)
- Entity: graph nodes with properties and typed links
- Event: universal system log — every verb execution produces one
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SubstrateKind
impl Clone for SubstrateKind
Source§fn clone(&self) -> SubstrateKind
fn clone(&self) -> SubstrateKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubstrateKind
impl Debug for SubstrateKind
Source§impl<'de> Deserialize<'de> for SubstrateKind
impl<'de> Deserialize<'de> for SubstrateKind
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
Source§impl Display for SubstrateKind
impl Display for SubstrateKind
Source§impl FromStr for SubstrateKind
impl FromStr for SubstrateKind
Source§impl Hash for SubstrateKind
impl Hash for SubstrateKind
Source§impl Ord for SubstrateKind
impl Ord for SubstrateKind
Source§fn cmp(&self, other: &SubstrateKind) -> Ordering
fn cmp(&self, other: &SubstrateKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SubstrateKind
impl PartialEq for SubstrateKind
Source§fn eq(&self, other: &SubstrateKind) -> bool
fn eq(&self, other: &SubstrateKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SubstrateKind
impl PartialOrd for SubstrateKind
Source§impl Serialize for SubstrateKind
impl Serialize for SubstrateKind
impl Copy for SubstrateKind
impl Eq for SubstrateKind
impl StructuralPartialEq for SubstrateKind
Auto Trait Implementations§
impl Freeze for SubstrateKind
impl RefUnwindSafe for SubstrateKind
impl Send for SubstrateKind
impl Sync for SubstrateKind
impl Unpin for SubstrateKind
impl UnsafeUnpin for SubstrateKind
impl UnwindSafe for SubstrateKind
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