pub struct NodeContext {
pub schema: String,
pub fingerprint: String,
pub node: ContextNode,
pub meta: Value,
pub outgoing: Vec<ContextEdge>,
pub incoming: Vec<ContextEdge>,
}Expand description
A node together with its one-hop neighbourhood and a validity fingerprint.
Fields§
§schema: StringStable schema tag (crate::SCHEMA).
fingerprint: StringFingerprint over the node’s content and its neighbours’ content; a change to either moves it, invalidating a cached entry.
node: ContextNodeThe subject node.
meta: ValueStructured metadata attached to the node.
outgoing: Vec<ContextEdge>Edges where the subject is the source.
incoming: Vec<ContextEdge>Edges where the subject is the destination.
Trait Implementations§
Source§impl Clone for NodeContext
impl Clone for NodeContext
Source§fn clone(&self) -> NodeContext
fn clone(&self) -> NodeContext
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 NodeContext
impl Debug for NodeContext
Source§impl<'de> Deserialize<'de> for NodeContext
impl<'de> Deserialize<'de> for NodeContext
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
Source§impl PartialEq for NodeContext
impl PartialEq for NodeContext
Source§impl Serialize for NodeContext
impl Serialize for NodeContext
impl StructuralPartialEq for NodeContext
Auto Trait Implementations§
impl Freeze for NodeContext
impl RefUnwindSafe for NodeContext
impl Send for NodeContext
impl Sync for NodeContext
impl Unpin for NodeContext
impl UnsafeUnpin for NodeContext
impl UnwindSafe for NodeContext
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