pub struct GraphNeighborhood {
pub root: GraphNodeRef,
pub hops: usize,
pub nodes_in_subgraph: usize,
pub edges: Vec<GraphHopEdge>,
pub truncated: bool,
pub db_nodes: usize,
pub db_edges: usize,
}Expand description
Result of a neighborhood query around one node.
Fields§
§root: GraphNodeRefResolved seed node.
hops: usizeRequested hop depth.
nodes_in_subgraph: usizeUnique nodes in the subgraph including the root.
edges: Vec<GraphHopEdge>Edges returned (may be capped by GraphOptions::max_edges).
truncated: boolTrue when max_edges truncated the expansion.
db_nodes: usizeTotal nodes in the database (context).
db_edges: usizeTotal edges in the database (context).
Implementations§
Trait Implementations§
Source§impl Clone for GraphNeighborhood
impl Clone for GraphNeighborhood
Source§fn clone(&self) -> GraphNeighborhood
fn clone(&self) -> GraphNeighborhood
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 GraphNeighborhood
impl Debug for GraphNeighborhood
Source§impl<'de> Deserialize<'de> for GraphNeighborhood
impl<'de> Deserialize<'de> for GraphNeighborhood
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 GraphNeighborhood
impl RefUnwindSafe for GraphNeighborhood
impl Send for GraphNeighborhood
impl Sync for GraphNeighborhood
impl Unpin for GraphNeighborhood
impl UnsafeUnpin for GraphNeighborhood
impl UnwindSafe for GraphNeighborhood
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