pub struct Node {
pub id: String,
pub label: String,
pub subtitle: Option<String>,
pub kind: NodeKind,
pub shape: Shape,
pub activity: Option<Activity>,
pub layer: usize,
pub x: f64,
pub y: f64,
pub w: f64,
pub h: f64,
}Expand description
A positioned node.
Fields§
§id: StringStable identifier, used to join edges to nodes and for DOM ids.
label: StringThe name shown on the node.
subtitle: Option<String>A second line: a trigger for a pipeline, read-only for an agent that has it.
kind: NodeKindWhat this node represents.
shape: ShapeHow to draw it.
activity: Option<Activity>What it is doing, if anything.
layer: usizeWhich column it sits in.
x: f64Left edge.
y: f64Top edge.
w: f64Width.
h: f64Height.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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