pub struct Target {
pub id: String,
pub target_type: String,
pub title: String,
pub url: String,
pub web_socket_debugger_url: Option<String>,
}Expand description
A debuggable target (tab, worker, etc.) as reported by GET /json/list.
Fields§
§id: StringChrome’s opaque target id.
target_type: StringTarget kind, e.g. "page". CdpClient::connect_to_page
only connects to targets of this type.
title: StringCurrent page/tab title.
url: StringCurrent page/tab URL.
web_socket_debugger_url: Option<String>WebSocket URL to open a CDP session against this target, if debuggable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
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 Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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