pub struct Node {
pub id: Uuid,
pub kind: String,
pub name: String,
pub summary: String,
pub attrs: Value,
pub group_id: String,
pub created_at: TimestampMs,
pub expired_at: Option<TimestampMs>,
pub merged_into: Option<Uuid>,
}Expand description
An entity node as stored.
Fields§
§id: UuidUUIDv7 identity.
kind: StringEntity kind.
name: StringDisplay name.
summary: StringSummary text.
attrs: ValueArbitrary JSON attributes.
group_id: StringNamespace.
created_at: TimestampMsSystem time: first believed.
expired_at: Option<TimestampMs>System time: belief retracted (set by merge), None = current.
merged_into: Option<Uuid>If merged away, the absorbing node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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