pub struct Entity {
pub header: Header,
pub kind: EntityKind,
pub entity_type: Option<String>,
pub name: String,
pub description: Option<String>,
pub properties: BTreeMap<String, PropertyValue>,
pub tags: Vec<String>,
pub deleted_at: Option<Timestamp>,
}Expand description
A graph node with a type, display name, and key-value properties.
Fields§
§header: HeaderIdentity and namespace metadata shared by all substrate records.
kind: EntityKindClosed base kind that classifies this entity.
entity_type: Option<String>Pack-governed subtype token (e.g. "paper", "snapshot"). Never stored
raw in properties — queries compile this to entities.entity_type = ?.
name: StringHuman-readable display name (required; must be non-empty).
description: Option<String>Optional long-form description of this entity.
properties: BTreeMap<String, PropertyValue>Arbitrary structured metadata as key-value pairs.
Categorical labels for filtering and retrieval.
deleted_at: Option<Timestamp>Set when the entity is soft-deleted; absent means active.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Entity
impl Freeze for Entitywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, PropertyValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PropertyValue)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for Entity
impl RefUnwindSafe for Entity
impl Send for Entitywhere
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for Entitywhere
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for Entity
impl UnsafeUnpin for Entitywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, PropertyValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PropertyValue)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Entity
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