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: Header§kind: EntityKind§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: String§description: Option<String>§properties: BTreeMap<String, PropertyValue>§deleted_at: Option<Timestamp>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