pub struct ElementSummary {
pub id: Option<u64>,
pub kind: String,
pub label: Option<String>,
pub value: Option<String>,
pub action: Option<String>,
pub params: Vec<(String, String)>,
pub description: Option<String>,
}Expand description
Lightweight description of a single UI element.
Fields§
§id: Option<u64>Stable element id assigned by UITree::assign_ids (if called).
kind: StringElement type, e.g. "button", "input", "h1", "text", "data_grid".
label: Option<String>Human-readable label or heading text.
value: Option<String>Current value (for inputs).
action: Option<String>Machine-readable action name (AiMeta::action).
params: Vec<(String, String)>Key-value parameters the action expects.
description: Option<String>Human-readable description of the element’s purpose.
Trait Implementations§
Source§impl Clone for ElementSummary
impl Clone for ElementSummary
Source§fn clone(&self) -> ElementSummary
fn clone(&self) -> ElementSummary
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 ElementSummary
impl Debug for ElementSummary
Auto Trait Implementations§
impl Freeze for ElementSummary
impl RefUnwindSafe for ElementSummary
impl Send for ElementSummary
impl Sync for ElementSummary
impl Unpin for ElementSummary
impl UnsafeUnpin for ElementSummary
impl UnwindSafe for ElementSummary
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