pub struct Node {Show 29 fields
pub id: String,
pub role: Role,
pub parent: Option<String>,
pub labels: Option<String>,
pub describes: Option<String>,
pub text: Option<String>,
pub description: Option<String>,
pub bounds: Rect,
pub visible: bool,
pub focused: bool,
pub disabled: bool,
pub read_only: bool,
pub selected: bool,
pub hovered: bool,
pub pressed: bool,
pub checked: Option<bool>,
pub expanded: Option<bool>,
pub value: Option<String>,
pub placeholder: Option<String>,
pub value_min: Option<f32>,
pub value_max: Option<f32>,
pub value_now: Option<f32>,
pub level: Option<u32>,
pub busy: bool,
pub invalid: bool,
pub required: bool,
pub live: Option<LiveRegion>,
pub live_atomic: bool,
pub modal: bool,
}Expand description
A single assertion target published for one frame.
Fields added after the initial protocol are omitted from serialized snapshots unless a component sets them, so recorded baselines stay stable as new roles gain state.
Fields§
§id: String§role: Role§parent: Option<String>§labels: Option<String>The control this node names, for a label that belongs to a field it is not the parent of. A test finds the field by reading its label.
describes: Option<String>The diagnostic identity this node describes. This does not imply native tree parentage or a platform described-by relationship.
text: Option<String>§description: Option<String>§bounds: Rect§visible: bool§focused: bool§disabled: bool§read_only: bool§selected: bool§hovered: bool§pressed: bool§checked: Option<bool>§expanded: Option<bool>§value: Option<String>§placeholder: Option<String>§value_min: Option<f32>§value_max: Option<f32>§value_now: Option<f32>§level: Option<u32>§busy: bool§invalid: bool§required: bool§live: Option<LiveRegion>§live_atomic: bool§modal: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().