indradb-lib 5.0.0

A graph database library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{Edge, Identifier, Json, Vertex};

use uuid::Uuid;

/// An item to insert, as part of a bulk insert request.
#[derive(Clone, Debug, PartialEq)]
pub enum BulkInsertItem {
    /// A vertex to insert.
    Vertex(Vertex),
    /// An edge to insert.
    Edge(Edge),
    /// A vertex property to insert.
    VertexProperty(Uuid, Identifier, Json),
    /// An edge property to insert.
    EdgeProperty(Edge, Identifier, Json),
}