pub struct Topology {
pub name: String,
pub nodes: IndexMap<String, Node>,
pub networks: IndexMap<String, Lan>,
pub links: Vec<Link>,
}Expand description
A project as drawn: its machines, LANs and cables.
Fields§
§name: StringKebab-case id of the project, the spec’s name.
nodes: IndexMap<String, Node>The nodes, by name: machines, and automatic routers.
networks: IndexMap<String, Lan>The LANs: name → its block. Machines join one through Node::networks.
links: Vec<Link>The cables between two nodes’ ports.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Topology
impl<'de> Deserialize<'de> for Topology
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 Topology
Auto Trait Implementations§
impl Freeze for Topology
impl RefUnwindSafe for Topology
impl Send for Topology
impl Sync for Topology
impl Unpin for Topology
impl UnsafeUnpin for Topology
impl UnwindSafe for Topology
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