pub struct ElementInfo {
pub tag_name: String,
pub text_content: Option<String>,
pub is_visible: bool,
pub is_enabled: bool,
pub bounding_box: Option<(f64, f64, f64, f64)>,
}Expand description
Result of an element query.
Fields§
§tag_name: StringThe element’s tag name.
text_content: Option<String>The element’s text content.
is_visible: boolWhether the element is visible.
is_enabled: boolWhether the element is enabled (for form elements).
bounding_box: Option<(f64, f64, f64, f64)>The element’s bounding box (x, y, width, height).
Trait Implementations§
Source§impl Clone for ElementInfo
impl Clone for ElementInfo
Source§fn clone(&self) -> ElementInfo
fn clone(&self) -> ElementInfo
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 moreAuto Trait Implementations§
impl Freeze for ElementInfo
impl RefUnwindSafe for ElementInfo
impl Send for ElementInfo
impl Sync for ElementInfo
impl Unpin for ElementInfo
impl UnwindSafe for ElementInfo
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