pub struct GraphNavigator { /* private fields */ }Implementations§
pub fn new(store: impl GraphStore + 'static) -> GraphNavigator
pub fn from_document(document: Document) -> GraphNavigator
pub fn from_portable( portable: &PortableDocument, ) -> Result<GraphNavigator, GraphStoreError>
pub fn from_json(payload: &str) -> Result<GraphNavigator, GraphStoreError>
pub fn load(path: impl AsRef<Path>) -> Result<GraphNavigator, GraphStoreError>
pub fn persist_sqlite( &self, path: impl AsRef<Path>, graph_key: impl Into<String>, ) -> Result<GraphNavigator, GraphStoreError>
pub fn open_sqlite( path: impl AsRef<Path>, graph_key: impl Into<String>, ) -> Result<GraphNavigator, GraphStoreError>
pub fn store_stats(&self) -> GraphStoreStats
pub fn observability(&self) -> GraphStoreObservability
pub fn session(&self) -> GraphSession
pub fn root_id(&self) -> BlockId
pub fn resolve_selector(&self, selector: &str) -> Option<BlockId>
pub fn describe_node(&self, block_id: BlockId) -> Option<GraphNodeSummary>
pub fn describe(&self, selector: &str) -> Option<GraphNodeSummary>
pub fn find_nodes( &self, query: &GraphFindQuery, ) -> Result<Vec<GraphNodeSummary>, GraphStoreError>
pub fn path_between( &self, start: BlockId, end: BlockId, max_hops: usize, ) -> Option<GraphPathResult>
pub fn neighbors( &self, block_id: BlockId, mode: GraphNeighborMode, ) -> Vec<GraphPathHop>
pub fn to_portable_document(&self) -> Result<PortableDocument, GraphStoreError>
pub fn to_document(&self) -> Result<Document, GraphStoreError>
pub fn to_json(&self) -> Result<String, GraphStoreError>
pub fn save(&self, path: impl AsRef<Path>) -> Result<(), GraphStoreError>
Trait Implementations§
Source§fn clone(&self) -> GraphNavigator
fn clone(&self) -> GraphNavigator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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