pub struct Neighbourhood {
pub nodes: Vec<Node>,
pub edges: Vec<GraphEdge>,
pub focus: Option<String>,
}Expand description
Nodes and labelled edges around the focus, for the canvas graph.
Fields§
§nodes: Vec<Node>§edges: Vec<GraphEdge>§focus: Option<String>Trait Implementations§
Source§impl Clone for Neighbourhood
impl Clone for Neighbourhood
Source§impl Debug for Neighbourhood
impl Debug for Neighbourhood
Source§impl Default for Neighbourhood
impl Default for Neighbourhood
Source§impl<'de> Deserialize<'de> for Neighbourhood
impl<'de> Deserialize<'de> for Neighbourhood
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 Forget for Neighbourhood
impl Freeze for Neighbourhood
impl RefUnwindSafe for Neighbourhood
impl Send for Neighbourhood
impl Sync for Neighbourhood
impl Unpin for Neighbourhood
impl UnsafeUnpin for Neighbourhood
impl UnwindSafe for Neighbourhood
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