indradb-lib 2.1.0

A graph database library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::edges::EdgeKey;
use super::vertices::Vertex;
use serde_json::Value as JsonValue;
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(EdgeKey),
    /// A vertex property to insert.
    VertexProperty(Uuid, String, JsonValue),
    /// An edge property to insert.
    EdgeProperty(EdgeKey, String, JsonValue),
}