pub struct LayoutNodeData {
pub block_id: String,
pub extra: Map<String, Value>,
}Expand description
Leaf-only payload — references the block this layout leaf renders.
Group nodes (those with children) carry no data.
Fields§
§block_id: String§extra: Map<String, Value>Catch-all for unknown fields — preserves forward-compat when the
frontend writes additional fields we don’t yet model. Uses
serde_json::Map (insertion-ordered) for deterministic round-trips.
Trait Implementations§
Source§impl Clone for LayoutNodeData
impl Clone for LayoutNodeData
Source§fn clone(&self) -> LayoutNodeData
fn clone(&self) -> LayoutNodeData
Returns a duplicate of the value. Read more
1.0.0 · 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 LayoutNodeData
impl Debug for LayoutNodeData
Source§impl Default for LayoutNodeData
impl Default for LayoutNodeData
Source§fn default() -> LayoutNodeData
fn default() -> LayoutNodeData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutNodeData
impl<'de> Deserialize<'de> for LayoutNodeData
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 LayoutNodeData
impl PartialEq for LayoutNodeData
Source§impl Serialize for LayoutNodeData
impl Serialize for LayoutNodeData
impl StructuralPartialEq for LayoutNodeData
Auto Trait Implementations§
impl Freeze for LayoutNodeData
impl RefUnwindSafe for LayoutNodeData
impl Send for LayoutNodeData
impl Sync for LayoutNodeData
impl Unpin for LayoutNodeData
impl UnwindSafe for LayoutNodeData
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