1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{EdgeKey, Identifier, 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(EdgeKey),
    /// A vertex property to insert.
    VertexProperty(Uuid, Identifier, serde_json::Value),
    /// An edge property to insert.
    EdgeProperty(EdgeKey, Identifier, serde_json::Value),
}