pub struct Node {
pub node_id: String,
pub node_type: String,
pub subtype: Option<String>,
pub label: String,
pub properties: BTreeMap<String, Value>,
pub property_clocks: HashMap<String, LamportClock>,
pub last_clock: LamportClock,
pub last_add_clock: LamportClock,
pub tombstoned: bool,
}Expand description
A materialized node in the graph.
Fields§
§node_id: String§node_type: String§subtype: Option<String>§label: String§properties: BTreeMap<String, Value>§property_clocks: HashMap<String, LamportClock>Per-property clocks for LWW conflict resolution. Each property key tracks the clock of its last write, so concurrent updates to different properties don’t conflict.
last_clock: LamportClockClock of the entry that last modified this node. Used for add-wins semantics and label LWW.
last_add_clock: LamportClockClock of the most recent AddNode for this node. Used for add-wins semantics: remove only wins if its clock is strictly greater than last_add_clock.
tombstoned: boolWhether this node has been tombstoned (removed).
Trait Implementations§
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