pub struct Frame<'a> { /* private fields */ }Expand description
Information about the Frame on the page.
Implementations§
Source§impl<'a> Frame<'a>
impl<'a> Frame<'a>
pub fn builder( id: FrameId<'a>, loaderId: LoaderId<'a>, url: impl Into<Cow<'a, str>>, domainAndRegistry: impl Into<Cow<'a, str>>, securityOrigin: impl Into<Cow<'a, str>>, mimeType: impl Into<Cow<'a, str>>, secureContextType: SecureContextType, crossOriginIsolatedContextType: CrossOriginIsolatedContextType, gatedAPIFeatures: Vec<GatedAPIFeatures>, ) -> FrameBuilder<'a>
pub fn id(&self) -> &FrameId<'a>
pub fn parentId(&self) -> Option<&FrameId<'a>>
pub fn loaderId(&self) -> &LoaderId<'a>
pub fn name(&self) -> Option<&str>
pub fn url(&self) -> &str
pub fn urlFragment(&self) -> Option<&str>
pub fn domainAndRegistry(&self) -> &str
pub fn securityOrigin(&self) -> &str
pub fn securityOriginDetails(&self) -> Option<&SecurityOriginDetails>
pub fn mimeType(&self) -> &str
pub fn unreachableUrl(&self) -> Option<&str>
pub fn adFrameStatus(&self) -> Option<&AdFrameStatus>
pub fn secureContextType(&self) -> &SecureContextType
pub fn crossOriginIsolatedContextType(&self) -> &CrossOriginIsolatedContextType
pub fn gatedAPIFeatures(&self) -> &[GatedAPIFeatures]
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Frame<'a>
impl<'de, 'a> Deserialize<'de> for Frame<'a>
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<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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