pub struct DiGraphSnapshot {
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: per-node attributes preserved across snapshot round-trip. Defaults to empty for backward compatibility.
edges: Vec<EdgeSnapshot>Edges in source→target order. left = source, right = target.
Trait Implementations§
Source§impl Clone for DiGraphSnapshot
impl Clone for DiGraphSnapshot
Source§fn clone(&self) -> DiGraphSnapshot
fn clone(&self) -> DiGraphSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiGraphSnapshot
impl Debug for DiGraphSnapshot
Source§impl<'de> Deserialize<'de> for DiGraphSnapshot
impl<'de> Deserialize<'de> for DiGraphSnapshot
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 DiGraphSnapshot
Source§impl PartialEq for DiGraphSnapshot
impl PartialEq for DiGraphSnapshot
Source§impl Serialize for DiGraphSnapshot
impl Serialize for DiGraphSnapshot
impl StructuralPartialEq for DiGraphSnapshot
Auto Trait Implementations§
impl Freeze for DiGraphSnapshot
impl RefUnwindSafe for DiGraphSnapshot
impl Send for DiGraphSnapshot
impl Sync for DiGraphSnapshot
impl Unpin for DiGraphSnapshot
impl UnsafeUnpin for DiGraphSnapshot
impl UnwindSafe for DiGraphSnapshot
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.