pub struct SysChartModel {
pub nodes: Vec<SysNode>,
pub edges: Vec<SysEdge>,
pub selected: Option<String>,
pub canvas_h: f32,
}Expand description
The complete observable state (FC-1 / FC-3) of a SystemChart, in one
serializable, round-trippable struct: every node + edge, the selection (keyed
on the stable SysNode::id, FC-5, so reorder/insert/delete preserves it),
and the canvas height. SystemChart::state hands
back a &SysChartModel; a headless driver (facett_core::harness) snapshots
it after feeding a Vec<Msg>.
Fields§
§nodes: Vec<SysNode>Free-positioned peer nodes.
edges: Vec<SysEdge>Undirected links between node ids.
selected: Option<String>Stable id of the selected node (drives the detail panel), keyed on the
domain id (SysNode::id) not an enumeration index (FC-5).
canvas_h: f32Height (px) the node canvas takes before the detail panel.
Trait Implementations§
Source§impl Clone for SysChartModel
impl Clone for SysChartModel
Source§fn clone(&self) -> SysChartModel
fn clone(&self) -> SysChartModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SysChartModel
impl Debug for SysChartModel
Source§impl<'de> Deserialize<'de> for SysChartModel
impl<'de> Deserialize<'de> for SysChartModel
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
Source§impl PartialEq for SysChartModel
impl PartialEq for SysChartModel
Source§impl Serialize for SysChartModel
impl Serialize for SysChartModel
impl StructuralPartialEq for SysChartModel
Auto Trait Implementations§
impl Freeze for SysChartModel
impl RefUnwindSafe for SysChartModel
impl Send for SysChartModel
impl Sync for SysChartModel
impl Unpin for SysChartModel
impl UnsafeUnpin for SysChartModel
impl UnwindSafe for SysChartModel
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more