indradb/models/bulk_insert.rs
1use crate::{Edge, Identifier, Json, Vertex};
2
3use uuid::Uuid;
4
5/// An item to insert, as part of a bulk insert request.
6#[derive(Clone, Debug, PartialEq)]
7pub enum BulkInsertItem {
8 /// A vertex to insert.
9 Vertex(Vertex),
10 /// An edge to insert.
11 Edge(Edge),
12 /// A vertex property to insert.
13 VertexProperty(Uuid, Identifier, Json),
14 /// An edge property to insert.
15 EdgeProperty(Edge, Identifier, Json),
16}