pub struct WidgetNode {
pub kind: WidgetKind,
pub id: Option<String>,
pub attributes: HashMap<String, AttributeValue>,
pub events: Vec<EventBinding>,
pub children: Vec<WidgetNode>,
pub span: Span,
pub style: Option<StyleProperties>,
pub layout: Option<LayoutConstraints>,
pub theme_ref: Option<String>,
pub classes: Vec<String>,
pub breakpoint_attributes: HashMap<Breakpoint, HashMap<String, AttributeValue>>,
}Expand description
A node in the widget tree
Fields§
§kind: WidgetKind§id: Option<String>§attributes: HashMap<String, AttributeValue>§events: Vec<EventBinding>§children: Vec<WidgetNode>§span: Span§style: Option<StyleProperties>§layout: Option<LayoutConstraints>§theme_ref: Option<String>§classes: Vec<String>§breakpoint_attributes: HashMap<Breakpoint, HashMap<String, AttributeValue>>Trait Implementations§
Source§impl Clone for WidgetNode
impl Clone for WidgetNode
Source§fn clone(&self) -> WidgetNode
fn clone(&self) -> WidgetNode
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 WidgetNode
impl Debug for WidgetNode
Source§impl Default for WidgetNode
impl Default for WidgetNode
Source§fn default() -> WidgetNode
fn default() -> WidgetNode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WidgetNode
impl<'de> Deserialize<'de> for WidgetNode
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 WidgetNode
impl PartialEq for WidgetNode
Source§impl Serialize for WidgetNode
impl Serialize for WidgetNode
impl StructuralPartialEq for WidgetNode
Auto Trait Implementations§
impl Freeze for WidgetNode
impl RefUnwindSafe for WidgetNode
impl Send for WidgetNode
impl Sync for WidgetNode
impl Unpin for WidgetNode
impl UnwindSafe for WidgetNode
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