pub struct Frame {Show 14 fields
pub id: FrameId,
pub parent_id: Option<FrameId>,
pub loader_id: LoaderId,
pub name: Option<String>,
pub url: String,
pub url_fragment: Option<String>,
pub domain_and_registry: String,
pub security_origin: String,
pub mime_type: String,
pub unreachable_url: Option<String>,
pub ad_frame_status: Option<AdFrameStatus>,
pub secure_context_type: SecureContextType,
pub cross_origin_isolated_context_type: CrossOriginIsolatedContextType,
pub gated_api_features: Vec<GatedApiFeatures>,
}Expand description
Information about the Frame on the page. Frame
Fields§
§id: FrameIdFrame unique identifier.
parent_id: Option<FrameId>Parent frame identifier.
loader_id: LoaderIdIdentifier of the loader associated with this frame.
name: Option<String>Frame’s name as specified in the tag.
url: StringFrame document’s URL without fragment.
url_fragment: Option<String>Frame document’s URL fragment including the ‘#’.
domain_and_registry: StringFrame document’s registered domain, taking the public suffixes list into account. Extracted from the Frame’s url. Example URLs: http://www.google.com/file.html -> “google.com” http://a.b.co.uk/file.html -> “b.co.uk”
security_origin: StringFrame document’s security origin.
mime_type: StringFrame document’s mimeType as determined by the browser.
unreachable_url: Option<String>If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
ad_frame_status: Option<AdFrameStatus>Indicates whether this frame was tagged as an ad and why.
secure_context_type: SecureContextTypeIndicates whether the main document is a secure context and explains why that is the case.
cross_origin_isolated_context_type: CrossOriginIsolatedContextTypeIndicates whether this is a cross origin isolated context.
gated_api_features: Vec<GatedApiFeatures>Indicated which gated APIs / features are available.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Frame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Frame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Frame
impl Serialize for Frame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more