1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use super::edges::EdgeKey;
use serde_json::Value as JsonValue;
use uuid::Uuid;
#[derive(Clone, Debug, PartialEq)]
pub struct VertexProperty {
pub id: Uuid,
pub value: JsonValue,
}
impl VertexProperty {
pub fn new(id: Uuid, value: JsonValue) -> Self {
Self { id, value }
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct EdgeProperty {
pub key: EdgeKey,
pub value: JsonValue,
}
impl EdgeProperty {
pub fn new(key: EdgeKey, value: JsonValue) -> Self {
Self { key, value }
}
}