use core_storage::Value;
#[derive(Debug)]
pub struct HistoryResult<T> {
pub items: Vec<T>,
pub total_commits: u64,
pub horizon: u64,
}
#[derive(Debug, PartialEq)]
pub struct EdgeHistoryEvent {
pub edge_type: String,
pub commit: u64,
pub event: EdgeEvent,
pub rule: Option<String>,
}
#[derive(Debug, PartialEq)]
pub enum EdgeEvent {
Added,
Retracted,
}
#[derive(Debug, PartialEq)]
pub struct HistoryEntry {
pub commit: u64,
pub change: HistoryChange,
}
#[derive(Debug, PartialEq)]
pub enum HistoryChange {
NodeInserted {
label: String,
},
PropSet {
field: String,
value: Value,
},
PropRemoved {
field: String,
},
EdgeAdded {
edge_type: String,
other: String,
outgoing: bool,
},
EdgeRemoved {
edge_type: String,
other: String,
outgoing: bool,
},
NodeDeleted,
}