Skip to content
YosoiDocs

DomElementRow

yosoi::view::DomElementRow

pub struct DomElementRow

A row naming one exact locator-backed DOM element reference.

Source: crates/yosoi/src/view.rs:68

pub const fn coordinate(&self) -> &yosoi::locators::NativeCoordinate

Borrows the native source-tree coordinate without resolving a live browser element.

Source: crates/yosoi/src/view.rs:87

pub const fn node(&self) -> &yosoi::locators::NodeReference

Borrows the document-bound locator node reference for this exact row.

Source: crates/yosoi/src/view.rs:82

pub const fn ordinal(&self) -> u64

Returns the deterministic zero-based position among elements of the captured document.

Source: crates/yosoi/src/view.rs:77

pub fn text_preview(&self) -> &str

Returns the bounded descendant-text preview captured for this element.

Source: crates/yosoi/src/view.rs:92

pub const fn text_truncated(&self) -> bool

Reports whether the source element’s descendant text exceeded the preview.

Source: crates/yosoi/src/view.rs:97

Clone
fn clone(&self) -> yosoi::view::DomElementRow

Source: crates/yosoi/src/view.rs:66

Debug
fn fmt(&self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

Source: crates/yosoi/src/view.rs:66

Deserialize
fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error> where __D: _serde::Deserializer<'de>

Source: crates/yosoi/src/view.rs:66

PartialEq
fn eq(&self, other: &yosoi::view::DomElementRow) -> bool

Source: crates/yosoi/src/view.rs:66

Serialize
fn serialize<__S>(&self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error> where __S: _serde::Serializer

Source: crates/yosoi/src/view.rs:66