pub struct NodeGraphPureViewState {
pub pan: CanvasPoint,
pub zoom: f32,
pub selected_nodes: Vec<NodeId>,
pub selected_edges: Vec<EdgeId>,
pub selected_groups: Vec<GroupId>,
pub draw_order: Vec<NodeId>,
pub edge_draw_order: Vec<EdgeId>,
pub group_draw_order: Vec<GroupId>,
}Expand description
Pure persisted view-state payload.
This excludes interaction policy and runtime tuning so persistence boundaries can evolve without forcing every in-memory/runtime consumer to change in the same step.
Fields§
§pan: CanvasPoint§zoom: f32§selected_nodes: Vec<NodeId>§selected_edges: Vec<EdgeId>§selected_groups: Vec<GroupId>§draw_order: Vec<NodeId>§edge_draw_order: Vec<EdgeId>§group_draw_order: Vec<GroupId>Trait Implementations§
Source§impl Clone for NodeGraphPureViewState
impl Clone for NodeGraphPureViewState
Source§fn clone(&self) -> NodeGraphPureViewState
fn clone(&self) -> NodeGraphPureViewState
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 NodeGraphPureViewState
impl Debug for NodeGraphPureViewState
Source§impl Default for NodeGraphPureViewState
impl Default for NodeGraphPureViewState
Source§impl<'de> Deserialize<'de> for NodeGraphPureViewState
impl<'de> Deserialize<'de> for NodeGraphPureViewState
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 From<&NodeGraphViewState> for NodeGraphPureViewState
impl From<&NodeGraphViewState> for NodeGraphPureViewState
Source§fn from(value: &NodeGraphViewState) -> Self
fn from(value: &NodeGraphViewState) -> Self
Converts to this type from the input type.
Source§impl From<NodeGraphPureViewState> for NodeGraphViewState
impl From<NodeGraphPureViewState> for NodeGraphViewState
Source§fn from(value: NodeGraphPureViewState) -> Self
fn from(value: NodeGraphPureViewState) -> Self
Converts to this type from the input type.
Source§impl From<NodeGraphViewState> for NodeGraphPureViewState
impl From<NodeGraphViewState> for NodeGraphPureViewState
Source§fn from(value: NodeGraphViewState) -> Self
fn from(value: NodeGraphViewState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NodeGraphPureViewState
impl PartialEq for NodeGraphPureViewState
Source§fn eq(&self, other: &NodeGraphPureViewState) -> bool
fn eq(&self, other: &NodeGraphPureViewState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeGraphPureViewState
impl Serialize for NodeGraphPureViewState
impl StructuralPartialEq for NodeGraphPureViewState
Auto Trait Implementations§
impl Freeze for NodeGraphPureViewState
impl RefUnwindSafe for NodeGraphPureViewState
impl Send for NodeGraphPureViewState
impl Sync for NodeGraphPureViewState
impl Unpin for NodeGraphPureViewState
impl UnsafeUnpin for NodeGraphPureViewState
impl UnwindSafe for NodeGraphPureViewState
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