pub struct FrameBuilder { /* private fields */ }
Implementations§
Source§impl FrameBuilder
impl FrameBuilder
pub fn id(self, id: impl Into<FrameId>) -> FrameBuilder
pub fn parent_id(self, parent_id: impl Into<FrameId>) -> FrameBuilder
pub fn loader_id(self, loader_id: impl Into<LoaderId>) -> FrameBuilder
pub fn name(self, name: impl Into<String>) -> FrameBuilder
pub fn url(self, url: impl Into<String>) -> FrameBuilder
pub fn url_fragment(self, url_fragment: impl Into<String>) -> FrameBuilder
pub fn domain_and_registry( self, domain_and_registry: impl Into<String>, ) -> FrameBuilder
pub fn security_origin(self, security_origin: impl Into<String>) -> FrameBuilder
pub fn mime_type(self, mime_type: impl Into<String>) -> FrameBuilder
pub fn unreachable_url(self, unreachable_url: impl Into<String>) -> FrameBuilder
pub fn ad_frame_status( self, ad_frame_status: impl Into<AdFrameStatus>, ) -> FrameBuilder
pub fn secure_context_type( self, secure_context_type: impl Into<SecureContextType>, ) -> FrameBuilder
pub fn cross_origin_isolated_context_type( self, cross_origin_isolated_context_type: impl Into<CrossOriginIsolatedContextType>, ) -> FrameBuilder
pub fn gated_api_feature( self, gated_api_feature: impl Into<GatedApiFeatures>, ) -> FrameBuilder
pub fn gated_api_features<I, S>(self, gated_api_features: I) -> FrameBuilder
pub fn build(self) -> Result<Frame, String>
Trait Implementations§
Source§impl Clone for FrameBuilder
impl Clone for FrameBuilder
Source§fn clone(&self) -> FrameBuilder
fn clone(&self) -> FrameBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for FrameBuilder
impl Default for FrameBuilder
Source§fn default() -> FrameBuilder
fn default() -> FrameBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameBuilder
impl RefUnwindSafe for FrameBuilder
impl Send for FrameBuilder
impl Sync for FrameBuilder
impl Unpin for FrameBuilder
impl UnwindSafe for FrameBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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