pub struct WidgetMeta {
pub widget_type: String,
pub id: Option<String>,
pub classes: HashSet<String>,
}Expand description
Widget metadata for CSS matching
Fields§
§widget_type: StringWidget type name (e.g., “Button”, “Input”, “Text”)
id: Option<String>Element ID (unique identifier, e.g., “submit-btn”)
classes: HashSet<String>CSS classes (e.g., [“primary”, “large”])
Implementations§
Source§impl WidgetMeta
impl WidgetMeta
Trait Implementations§
Source§impl Clone for WidgetMeta
impl Clone for WidgetMeta
Source§fn clone(&self) -> WidgetMeta
fn clone(&self) -> WidgetMeta
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 WidgetMeta
impl Debug for WidgetMeta
Source§impl Default for WidgetMeta
impl Default for WidgetMeta
Source§fn default() -> WidgetMeta
fn default() -> WidgetMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WidgetMeta
impl RefUnwindSafe for WidgetMeta
impl Send for WidgetMeta
impl Sync for WidgetMeta
impl Unpin for WidgetMeta
impl UnsafeUnpin for WidgetMeta
impl UnwindSafe for WidgetMeta
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