pub struct AnchorGraph {
pub nodes: Vec<AnchorRef>,
pub edges: Vec<(Uuid, Uuid, String)>,
}Expand description
A graph of anchors, forming a causal chain.
Callers persist this across sessions. Brain navigates but doesn’t own.
Fields§
§nodes: Vec<AnchorRef>All anchor nodes in this graph.
edges: Vec<(Uuid, Uuid, String)>Edges: (from_id, to_id, relation) where relation is e.g. “derives_from”, “uses”, “contradicts”.
Implementations§
Trait Implementations§
Source§impl Clone for AnchorGraph
impl Clone for AnchorGraph
Source§fn clone(&self) -> AnchorGraph
fn clone(&self) -> AnchorGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnchorGraph
impl Debug for AnchorGraph
Source§impl Default for AnchorGraph
impl Default for AnchorGraph
Source§fn default() -> AnchorGraph
fn default() -> AnchorGraph
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnchorGraph
impl<'de> Deserialize<'de> for AnchorGraph
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
Auto Trait Implementations§
impl Freeze for AnchorGraph
impl RefUnwindSafe for AnchorGraph
impl Send for AnchorGraph
impl Sync for AnchorGraph
impl Unpin for AnchorGraph
impl UnsafeUnpin for AnchorGraph
impl UnwindSafe for AnchorGraph
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