pub trait ProjectionPort: Send + Sync {
// Required methods
fn get_vertex<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 VertexId,
) -> Pin<Box<dyn Future<Output = Result<Option<Vertex>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_edge<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 EdgeId,
) -> Pin<Box<dyn Future<Output = Result<Option<Edge>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn scan_vertices<'life0, 'async_trait>(
&'life0 self,
filter: Option<VertexFilter>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vertex>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn scan_edges<'life0, 'async_trait>(
&'life0 self,
filter: Option<EdgeFilter>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Edge>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn traverse<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
start: &'life1 VertexId,
pattern: &'life2 PathPattern,
) -> Pin<Box<dyn Future<Output = Result<Vec<Path>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Projection interface for graph data access