pub struct ObserveResult {
pub selector: String,
pub tag: String,
pub type_: String,
pub text: String,
pub aria_label: String,
pub placeholder: String,
pub href: String,
pub value: String,
pub rect: ElementRect,
pub score: Option<f64>,
}Expand description
An observed interactive element on the page.
Fields§
§selector: StringCSS selector that can target this element.
tag: StringHTML tag name.
type_: StringInput type (for input elements).
text: StringVisible text content (truncated).
aria_label: Stringaria-label attribute.
placeholder: StringPlaceholder text.
href: Stringhref attribute (for links).
value: StringCurrent input value (for inputs/textareas).
rect: ElementRectBounding rectangle in viewport coordinates.
score: Option<f64>Relevance score (0-1) when LLM ranking is used.
Trait Implementations§
Source§impl Clone for ObserveResult
impl Clone for ObserveResult
Source§fn clone(&self) -> ObserveResult
fn clone(&self) -> ObserveResult
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 ObserveResult
impl Debug for ObserveResult
Source§impl<'de> Deserialize<'de> for ObserveResult
impl<'de> Deserialize<'de> for ObserveResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObserveResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObserveResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ObserveResult
impl Serialize for ObserveResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ObserveResult
impl RefUnwindSafe for ObserveResult
impl Send for ObserveResult
impl Sync for ObserveResult
impl Unpin for ObserveResult
impl UnsafeUnpin for ObserveResult
impl UnwindSafe for ObserveResult
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