pub struct GraphSnapshot {
pub mode: CompatibilityMode,
pub nodes: Vec<String>,
pub node_attrs: BTreeMap<String, AttrMap>,
pub edges: Vec<EdgeSnapshot>,
}Fields§
§mode: CompatibilityMode§nodes: Vec<String>§node_attrs: BTreeMap<String, AttrMap>br-snapnodeattrs: node attributes keyed by node name. Preserved
across the snapshot round-trip so a graph with
add_node(n, attrs) doesn’t lose those attrs when replayed.
Defaults to empty for snapshots produced by old code paths;
consumers that don’t care can ignore it.
edges: Vec<EdgeSnapshot>Trait Implementations§
Source§impl Clone for GraphSnapshot
impl Clone for GraphSnapshot
Source§impl Debug for GraphSnapshot
impl Debug for GraphSnapshot
Source§impl<'de> Deserialize<'de> for GraphSnapshot
impl<'de> Deserialize<'de> for GraphSnapshot
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
impl Eq for GraphSnapshot
Source§impl PartialEq for GraphSnapshot
impl PartialEq for GraphSnapshot
Source§impl Serialize for GraphSnapshot
impl Serialize for GraphSnapshot
impl StructuralPartialEq for GraphSnapshot
Auto Trait Implementations§
impl Freeze for GraphSnapshot
impl RefUnwindSafe for GraphSnapshot
impl Send for GraphSnapshot
impl Sync for GraphSnapshot
impl Unpin for GraphSnapshot
impl UnsafeUnpin for GraphSnapshot
impl UnwindSafe for GraphSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.