Struct chromiumoxide::cdp::browser_protocol::page::Frame
source · 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: FrameId
Frame unique identifier.
parent_id: Option<FrameId>
Parent frame identifier.
loader_id: LoaderId
Identifier of the loader associated with this frame.
name: Option<String>
Frame’s name as specified in the tag.
url: String
Frame document’s URL without fragment.
url_fragment: Option<String>
Frame document’s URL fragment including the ‘#’.
domain_and_registry: String
Frame 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: String
Frame document’s security origin.
mime_type: String
Frame 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: SecureContextType
Indicates whether the main document is a secure context and explains why that is the case.
cross_origin_isolated_context_type: CrossOriginIsolatedContextType
Indicates whether this is a cross origin isolated context.
gated_api_features: Vec<GatedApiFeatures>
Indicated which gated APIs / features are available.