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 Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
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