pub trait Graph {
Show 21 methods
// Required methods
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ArangoResult<List>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create<'life0, 'async_trait>(
&'life0 self,
config: CreateConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read<'life0, 'async_trait>(
&'life0 self,
config: ReadConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_edge_def<'life0, 'async_trait>(
&'life0 self,
config: CreateEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_edge_defs<'life0, 'async_trait>(
&'life0 self,
config: ReadEdgeDefsConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<EdgesMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_edge_def<'life0, 'async_trait>(
&'life0 self,
config: DeleteEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn replace_edge_def<'life0, 'async_trait>(
&'life0 self,
config: ReplaceEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeCreateConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<CreateEdge>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeDeleteConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteEdge>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeReadConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadEdge>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeUpdateConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateEdge>> + Send + 'async_trait>>
where T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn replace_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeReplaceConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReplaceEdge>> + Send + 'async_trait>>
where T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn read_vertex_colls<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexCollsConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexColls>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: CreateVertexCollConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexCollConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: CreateVertexConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexMeta>> + Send + 'async_trait>>
where T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn read_vertex<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadVertexMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_vertex<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteVertexMeta>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>
where T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn replace_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>
where T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Database Operations
Required Methods§
Sourcefn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ArangoResult<List>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ArangoResult<List>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all graphs
Sourcefn create<'life0, 'async_trait>(
&'life0 self,
config: CreateConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
config: CreateConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a graph
Sourcefn read<'life0, 'async_trait>(
&'life0 self,
config: ReadConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
config: ReadConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read a graph
Sourcefn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a graph
Sourcefn create_edge_def<'life0, 'async_trait>(
&'life0 self,
config: CreateEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_edge_def<'life0, 'async_trait>(
&'life0 self,
config: CreateEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an edge definition
Sourcefn read_edge_defs<'life0, 'async_trait>(
&'life0 self,
config: ReadEdgeDefsConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<EdgesMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_edge_defs<'life0, 'async_trait>(
&'life0 self,
config: ReadEdgeDefsConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<EdgesMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the edge definitions for the given graph
Sourcefn delete_edge_def<'life0, 'async_trait>(
&'life0 self,
config: DeleteEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_edge_def<'life0, 'async_trait>(
&'life0 self,
config: DeleteEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete an edge definition
Sourcefn replace_edge_def<'life0, 'async_trait>(
&'life0 self,
config: ReplaceEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replace_edge_def<'life0, 'async_trait>(
&'life0 self,
config: ReplaceEdgeDefConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Replace an edge definition
Sourcefn create_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeCreateConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<CreateEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeCreateConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<CreateEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an edge for a graph
Sourcefn delete_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeDeleteConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeDeleteConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete an edge from a graph
Sourcefn read_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeReadConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeReadConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read an edge from a graph
Sourcefn update_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeUpdateConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateEdge>> + Send + 'async_trait>>
fn update_edge<'life0, 'async_trait, T>( &'life0 self, config: EdgeUpdateConfig<T>, ) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateEdge>> + Send + 'async_trait>>
Update an edge from a graph
Sourcefn replace_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeReplaceConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReplaceEdge>> + Send + 'async_trait>>
fn replace_edge<'life0, 'async_trait, T>( &'life0 self, config: EdgeReplaceConfig<T>, ) -> Pin<Box<dyn Future<Output = ArangoResult<ReplaceEdge>> + Send + 'async_trait>>
Replace an edge from a graph
Sourcefn read_vertex_colls<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexCollsConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexColls>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_vertex_colls<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexCollsConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexColls>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the vertex collections from a graph
Sourcefn create_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: CreateVertexCollConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: CreateVertexCollConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create vertex collection
Sourcefn delete_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexCollConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexCollConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete vertex collection
Sourcefn create_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: CreateVertexConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexMeta>> + Send + 'async_trait>>
fn create_vertex<'life0, 'async_trait, T>( &'life0 self, config: CreateVertexConfig<T>, ) -> Pin<Box<dyn Future<Output = ArangoResult<VertexMeta>> + Send + 'async_trait>>
Create vertex
Sourcefn read_vertex<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_vertex<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read a vertex
Sourcefn delete_vertex<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_vertex<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexConfig,
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a vertex
Sourcefn update_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>
fn update_vertex<'life0, 'async_trait, T>( &'life0 self, config: UpdateVertexConfig<T>, ) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>
Update vertex
Sourcefn replace_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>,
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>
fn replace_vertex<'life0, 'async_trait, T>( &'life0 self, config: UpdateVertexConfig<T>, ) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>
Replace vertex
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.