pub struct ConvexGraphStore<C> { /* private fields */ }Implementations§
Source§impl<C> ConvexGraphStore<C>
impl<C> ConvexGraphStore<C>
pub fn new(client: C) -> ConvexGraphStore<C>
pub fn client(&self) -> &C
pub fn into_inner(self) -> C
Trait Implementations§
Source§impl<C> GraphStore for ConvexGraphStore<C>where
C: ConvexGraphClient,
impl<C> GraphStore for ConvexGraphStore<C>where
C: ConvexGraphClient,
fn upsert_node(&self, node: &GraphNode) -> Result<(), Error>
fn upsert_edge(&self, edge: &GraphEdge) -> Result<(), Error>
fn delete_node(&self, id: &str) -> Result<usize, Error>
fn delete_edge( &self, from_id: &str, to_id: &str, kind: &str, ) -> Result<usize, Error>
fn node(&self, id: &str) -> Result<Option<GraphNode>, Error>
fn all_nodes(&self) -> Result<Vec<GraphNode>, Error>
fn all_edges(&self) -> Result<Vec<GraphEdge>, Error>
fn graph_counts(&self) -> Result<(usize, usize), Error>
fn nodes_by_kind(&self, kind: &str) -> Result<Vec<GraphNode>, Error>
fn outgoing_edges( &self, from_id: &str, kind: Option<&str>, ) -> Result<Vec<GraphEdge>, Error>
fn shortest_path( &self, from_id: &str, to_id: &str, kind: Option<&str>, ) -> Result<Option<GraphPath>, Error>
fn edge(&self, edge_id: &str) -> Result<Option<GraphEdge>, Error>
fn sample_edge(&self, kind: Option<&str>) -> Result<Option<GraphEdge>, Error>
fn sample_edge_with_property( &self, ) -> Result<Option<(GraphEdge, GraphPropertyFilter)>, Error>
fn incident_edges( &self, node_id: &str, kind: Option<&str>, ) -> Result<Vec<GraphEdge>, Error>
fn paged_edges( &self, kind: Option<&str>, options: GraphQueryOptions, ) -> Result<GraphPagedSubgraph, Error>
fn paged_incident_edges( &self, node_id: &str, kind: Option<&str>, options: GraphQueryOptions, ) -> Result<GraphPagedSubgraph, Error>
fn edges_between_nodes( &self, node_ids: &BTreeSet<String>, ) -> Result<Vec<GraphEdge>, Error>
fn shortest_path_with_max_hops( &self, from_id: &str, to_id: &str, kind: Option<&str>, max_hops: Option<usize>, ) -> Result<Option<GraphPath>, Error>
fn neighborhood( &self, center_id: &str, depth: usize, kind: Option<&str>, ) -> Result<Option<GraphSubgraph>, Error>
fn paged_nodes_by_kind( &self, kind: &str, options: GraphQueryOptions, ) -> Result<GraphPagedSubgraph, Error>
fn paged_neighborhood( &self, center_id: &str, depth: usize, kind: Option<&str>, options: GraphQueryOptions, ) -> Result<Option<GraphPagedSubgraph>, Error>
fn ranked_neighborhood( &self, center_id: &str, options: &RankedNeighborhoodOptions, ) -> Result<Option<RankedNeighborhoodResult>, Error>
fn reachable_nodes_by_kind( &self, from_id: &str, kind: &str, depth: usize, limit: usize, ) -> Result<Vec<(GraphNode, GraphPath)>, Error>
fn reachable_nodes_by_kinds( &self, from_id: &str, kinds: &[&str], depth: usize, limit: usize, ) -> Result<BTreeMap<String, Vec<(GraphNode, GraphPath)>>, Error>
fn resolve_evidence_target( &self, target: &str, kinds: &[&str], ) -> Result<Option<GraphNode>, Error>
Auto Trait Implementations§
impl<C> Freeze for ConvexGraphStore<C>where
C: Freeze,
impl<C> RefUnwindSafe for ConvexGraphStore<C>where
C: RefUnwindSafe,
impl<C> Send for ConvexGraphStore<C>where
C: Send,
impl<C> Sync for ConvexGraphStore<C>where
C: Sync,
impl<C> Unpin for ConvexGraphStore<C>where
C: Unpin,
impl<C> UnsafeUnpin for ConvexGraphStore<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for ConvexGraphStore<C>where
C: UnwindSafe,
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