pub struct TargetInfo {
pub target_id: String,
pub target_type: String,
pub title: String,
pub url: String,
pub attached: bool,
pub browser_context_id: Option<String>,
pub opener_id: Option<String>,
}Expand description
Information about a target.
Fields§
§target_id: StringTarget identifier.
target_type: StringTarget type (e.g., “page”, “background_page”, “service_worker”).
title: StringTarget title.
url: StringTarget URL.
attached: boolWhether the target is attached.
browser_context_id: Option<String>Browser context ID if this target belongs to a context.
opener_id: Option<String>Opener target ID (the target that opened this one, for popups).
Trait Implementations§
Source§impl Clone for TargetInfo
impl Clone for TargetInfo
Source§fn clone(&self) -> TargetInfo
fn clone(&self) -> TargetInfo
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 TargetInfo
impl Debug for TargetInfo
Source§impl<'de> Deserialize<'de> for TargetInfo
impl<'de> Deserialize<'de> for TargetInfo
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 TargetInfo
impl RefUnwindSafe for TargetInfo
impl Send for TargetInfo
impl Sync for TargetInfo
impl Unpin for TargetInfo
impl UnwindSafe for TargetInfo
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