pub struct TargetInfo {Show 13 fields
pub target_id: TargetId,
pub type: String,
pub title: String,
pub url: String,
pub attached: bool,
pub parent_id: Option<TargetId>,
pub opener_id: Option<TargetId>,
pub can_access_opener: bool,
pub opener_frame_id: Option<FrameId>,
pub parent_frame_id: Option<FrameId>,
pub browser_context_id: Option<BrowserContextId>,
pub subtype: Option<String>,
pub embedder_data: Option<Value>,
}Fields§
§target_id: TargetId§type: String§title: String§url: String§attached: boolWhether the target has an attached client.
parent_id: Option<TargetId>Id of the parent target, if any. For example, “iframe” target may have a “page” parent.
opener_id: Option<TargetId>Opener target Id
can_access_opener: boolWhether the target has access to the originating window.
Experimental: may change without notice.
opener_frame_id: Option<FrameId>Frame id of originating window (is only set if target has an opener).
Experimental: may change without notice.
parent_frame_id: Option<FrameId>Id of the parent frame, present for “iframe” and “worker” targets. For nested workers, this is the “ancestor” frame that created the first worker in the nested chain.
Experimental: may change without notice.
browser_context_id: Option<BrowserContextId>Experimental: may change without notice.
subtype: Option<String>Provides additional details for specific target types. For example, for the type of “page”, this may be set to “prerender”.
Experimental: may change without notice.
embedder_data: Option<Value>Embedder-specific target metadata. This is only set for targets of type “tab”.
Experimental: may change without notice.