Trait ruarango::Graph

source ·
pub trait Graph {
Show 21 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§

List all graphs

Create a graph

Read a graph

Delete a graph

Create an edge definition

Read the edge definitions for the given graph

Delete an edge definition

Replace an edge definition

Create an edge for a graph

Delete an edge from a graph

Read an edge from a graph

Update an edge from a graph

Replace an edge from a graph

Read the vertex collections from a graph

Create vertex collection

Delete vertex collection

Create vertex

Read a vertex

Delete a vertex

Update vertex

Replace vertex

Implementors§