pub struct BrowserSnapshot {
pub url: String,
pub title: String,
pub selected_text: Option<String>,
}Expand description
A snapshot of the current browser state at the moment a command is issued.
Captured by JavaScript adapters and sent to the Rust core for processing. The core never reads browser state directly — it only receives these snapshots.
Fields§
§url: StringThe URL of the active tab.
title: StringThe document title of the active tab.
selected_text: Option<String>Text selected by the user, if any.
Trait Implementations§
Source§impl Clone for BrowserSnapshot
impl Clone for BrowserSnapshot
Source§fn clone(&self) -> BrowserSnapshot
fn clone(&self) -> BrowserSnapshot
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 moreSource§impl Debug for BrowserSnapshot
impl Debug for BrowserSnapshot
Source§impl<'de> Deserialize<'de> for BrowserSnapshot
impl<'de> Deserialize<'de> for BrowserSnapshot
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
Auto Trait Implementations§
impl Freeze for BrowserSnapshot
impl RefUnwindSafe for BrowserSnapshot
impl Send for BrowserSnapshot
impl Sync for BrowserSnapshot
impl Unpin for BrowserSnapshot
impl UnsafeUnpin for BrowserSnapshot
impl UnwindSafe for BrowserSnapshot
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