pub struct SemanticNode {
pub id: u64,
pub parent: Option<u64>,
pub role: String,
pub name: String,
pub value: Option<String>,
pub enabled: bool,
pub visible: bool,
pub selected: bool,
pub bounds: Option<[f64; 4]>,
pub slot: Option<String>,
}Fields§
§id: u64§parent: Option<u64>§role: String§name: String§value: Option<String>§enabled: bool§visible: bool§selected: bool§bounds: Option<[f64; 4]>§slot: Option<String>The library slot this element is, when it is part of a component.
Read from data-slot, which a component library emits to name its own
parts. Addressing a control by the slot it is rather than by the text
it happens to carry is what lets a harness tell a trigger from the thing
it opens: those two routinely share an accessible name, so a check
written against the name passes whether or not anything happened.
Trait Implementations§
Source§impl Clone for SemanticNode
impl Clone for SemanticNode
Source§fn clone(&self) -> SemanticNode
fn clone(&self) -> SemanticNode
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 SemanticNode
impl Debug for SemanticNode
Source§impl<'de> Deserialize<'de> for SemanticNode
impl<'de> Deserialize<'de> for SemanticNode
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 SemanticNode
impl PartialEq for SemanticNode
Source§impl Serialize for SemanticNode
impl Serialize for SemanticNode
impl StructuralPartialEq for SemanticNode
Auto Trait Implementations§
impl Freeze for SemanticNode
impl RefUnwindSafe for SemanticNode
impl Send for SemanticNode
impl Sync for SemanticNode
impl Unpin for SemanticNode
impl UnsafeUnpin for SemanticNode
impl UnwindSafe for SemanticNode
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