#[non_exhaustive]pub enum Layer {
Tier(Tier),
Connector(Connector),
FlowLabels(FlowLabels),
}Expand description
A single visual element in the diagram’s layer stack.
Layers are rendered in order from top to bottom. Each layer is exactly one of: a tier (horizontal band of nodes), a connector (visual link between tiers), or flow labels (directional arrows).
In YAML, each layer is a map with a single key identifying the variant:
- tier:
id: main
nodes: [...]
- connector:
style: line
- flow_labels:
items: [...]Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tier(Tier)
A horizontal band of nodes.
Connector(Connector)
A visual connector between adjacent tiers.
FlowLabels(FlowLabels)
Directional labels between tiers.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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 Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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