Skip to main content

FrameBuilder

Struct FrameBuilder 

Source
pub struct FrameBuilder<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> FrameBuilder<'a>

Source

pub fn parentId(self, parentId: FrameId<'a>) -> Self

Parent frame identifier.

Source

pub fn name(self, name: impl Into<Cow<'a, str>>) -> Self

Frame’s name as specified in the tag.

Source

pub fn urlFragment(self, urlFragment: impl Into<Cow<'a, str>>) -> Self

Frame document’s URL fragment including the ‘#’.

Source

pub fn securityOriginDetails( self, securityOriginDetails: SecurityOriginDetails, ) -> Self

Additional details about the frame document’s security origin.

Source

pub fn unreachableUrl(self, unreachableUrl: impl Into<Cow<'a, str>>) -> Self

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.

Source

pub fn adFrameStatus(self, adFrameStatus: AdFrameStatus) -> Self

Indicates whether this frame was tagged as an ad and why.

Source

pub fn build(self) -> Frame<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for FrameBuilder<'a>

§

impl<'a> RefUnwindSafe for FrameBuilder<'a>

§

impl<'a> Send for FrameBuilder<'a>

§

impl<'a> Sync for FrameBuilder<'a>

§

impl<'a> Unpin for FrameBuilder<'a>

§

impl<'a> UnsafeUnpin for FrameBuilder<'a>

§

impl<'a> UnwindSafe for FrameBuilder<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.