pub struct LegacyGraph {
pub nodes: Vec<LegacyNode>,
pub links: Vec<LegacyLink>,
pub metadata: BTreeMap<String, AttributeValue>,
}Expand description
Compatibility representation for the current JavaScript Weavatrix graph.
Fields§
§nodes: Vec<LegacyNode>§links: Vec<LegacyLink>§metadata: BTreeMap<String, AttributeValue>Implementations§
Source§impl LegacyGraph
impl LegacyGraph
Trait Implementations§
Source§impl Clone for LegacyGraph
impl Clone for LegacyGraph
Source§fn clone(&self) -> LegacyGraph
fn clone(&self) -> LegacyGraph
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 LegacyGraph
impl Debug for LegacyGraph
Source§impl<'de> Deserialize<'de> for LegacyGraph
impl<'de> Deserialize<'de> for LegacyGraph
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 LegacyGraph
Source§impl PartialEq for LegacyGraph
impl PartialEq for LegacyGraph
Source§impl Serialize for LegacyGraph
impl Serialize for LegacyGraph
impl StructuralPartialEq for LegacyGraph
Source§impl TryFrom<LegacyGraph> for Graph
impl TryFrom<LegacyGraph> for Graph
Source§type Error = GraphError
type Error = GraphError
The type returned in the event of a conversion error.
Source§fn try_from(value: LegacyGraph) -> Result<Self>
fn try_from(value: LegacyGraph) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LegacyGraph
impl RefUnwindSafe for LegacyGraph
impl Send for LegacyGraph
impl Sync for LegacyGraph
impl Unpin for LegacyGraph
impl UnsafeUnpin for LegacyGraph
impl UnwindSafe for LegacyGraph
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