Trait Graph

Source
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§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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,

Update an edge from a graph

Source

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,

Replace an edge from a graph

Source

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

Source

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

Source

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

Source

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,

Create vertex

Source

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

Source

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

Source

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,

Update vertex

Source

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,

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.

Implementors§