pub struct Lineage {
pub root: Option<Node>,
pub incoming: Vec<Relation>,
pub outgoing: Vec<Relation>,
pub related_nodes: Vec<Node>,
}Fields§
§root: Option<Node>§incoming: Vec<Relation>§outgoing: Vec<Relation>Implementations§
Source§impl Lineage
impl Lineage
pub fn from_graph(graph: &Graph, id: &NodeId) -> Self
pub fn to_markdown(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lineage
impl<'de> Deserialize<'de> for Lineage
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 StructuralPartialEq for Lineage
Auto Trait Implementations§
impl Freeze for Lineage
impl RefUnwindSafe for Lineage
impl Send for Lineage
impl Sync for Lineage
impl Unpin for Lineage
impl UnsafeUnpin for Lineage
impl UnwindSafe for Lineage
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