pub struct MapDelta {
pub domain: String,
pub base_hash: [u8; 32],
pub timestamp: DateTime<Utc>,
pub cortex_instance_id: String,
pub nodes_added: Vec<CompactNode>,
pub nodes_removed: Vec<u32>,
pub nodes_modified: Vec<(u32, FeatureDelta)>,
pub edges_added: Vec<(u32, u32)>,
pub edges_removed: Vec<(u32, u32)>,
pub schema_delta: Option<SchemaDelta>,
}Expand description
A delta between two versions of a SiteMap.
Fields§
§domain: StringDomain this delta applies to.
base_hash: [u8; 32]Hash of the base map this delta applies to.
timestamp: DateTime<Utc>When this delta was computed.
cortex_instance_id: StringWhich Cortex instance produced this delta.
nodes_added: Vec<CompactNode>New nodes added.
nodes_removed: Vec<u32>Node indices removed.
nodes_modified: Vec<(u32, FeatureDelta)>Nodes with changed features.
edges_added: Vec<(u32, u32)>New edges added (source, target).
edges_removed: Vec<(u32, u32)>Edges removed (source, target).
schema_delta: Option<SchemaDelta>Schema changes, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapDelta
impl<'de> Deserialize<'de> for MapDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MapDelta
impl RefUnwindSafe for MapDelta
impl Send for MapDelta
impl Sync for MapDelta
impl Unpin for MapDelta
impl UnsafeUnpin for MapDelta
impl UnwindSafe for MapDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more