pub struct ObservedNode {
pub node_ref: String,
pub role: String,
pub name: String,
pub tag: String,
pub selector: String,
pub visible: bool,
pub disabled: bool,
pub sensitive: bool,
pub frame_id: String,
pub stable_id: u64,
pub bounds: Rect,
}Fields§
§node_ref: Stringr<epoch>.<n>; valid only while the page stays unchanged.
role: String§name: StringMasked (••••••••) when sensitive is true.
tag: String§selector: String§visible: bool§disabled: bool§sensitive: boolTrue for password-like fields (type=password, current-password, new-password).
Their name is masked; callers should mask any value they show.
frame_id: StringCDP frame id of the document the node was read from. An observation reads the main document only (iframe contents are not enumerated, see the changelog), so this is the main frame’s id for every node; it does not make iframe controls observable.
stable_id: u64Stable across consecutive observations of the same document for the same selector.
0 when the node has no selector (such nodes cannot be targeted by ref either).
bounds: RectTrait Implementations§
Source§impl Clone for ObservedNode
impl Clone for ObservedNode
Source§impl Debug for ObservedNode
impl Debug for ObservedNode
Auto Trait Implementations§
impl Freeze for ObservedNode
impl RefUnwindSafe for ObservedNode
impl Send for ObservedNode
impl Sync for ObservedNode
impl Unpin for ObservedNode
impl UnsafeUnpin for ObservedNode
impl UnwindSafe for ObservedNode
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