pub struct IframeBuilder<'a, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'a, S: State> IframeBuilder<'a, S>
impl<'a, S: State> IframeBuilder<'a, S>
Sourcepub fn build(self) -> Iframe<'a>where
S: IsComplete,
pub fn build(self) -> Iframe<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn height(self, value: impl Into<i64>) -> IframeBuilder<'a, SetHeight<S>>where
S::Height: IsUnset,
pub fn height(self, value: impl Into<i64>) -> IframeBuilder<'a, SetHeight<S>>where
S::Height: IsUnset,
Sourcepub fn maybe_height(
self,
value: Option<impl Into<i64>>,
) -> IframeBuilder<'a, SetHeight<S>>where
S::Height: IsUnset,
pub fn maybe_height(
self,
value: Option<impl Into<i64>>,
) -> IframeBuilder<'a, SetHeight<S>>where
S::Height: IsUnset,
Sourcepub fn url(self, value: Uri<'a>) -> IframeBuilder<'a, SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: Uri<'a>) -> IframeBuilder<'a, SetUrl<S>>where
S::Url: IsUnset,
Required.
Sourcepub fn extra_data(
self,
value: BTreeMap<SmolStr, Data<'a>>,
) -> IframeBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
pub fn extra_data(
self,
value: BTreeMap<SmolStr, Data<'a>>,
) -> IframeBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
Sourcepub fn maybe_extra_data(
self,
value: Option<BTreeMap<SmolStr, Data<'a>>>,
) -> IframeBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
pub fn maybe_extra_data(
self,
value: Option<BTreeMap<SmolStr, Data<'a>>>,
) -> IframeBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
Auto Trait Implementations§
impl<'a, S> Freeze for IframeBuilder<'a, S>
impl<'a, S> RefUnwindSafe for IframeBuilder<'a, S>
impl<'a, S> Send for IframeBuilder<'a, S>
impl<'a, S> Sync for IframeBuilder<'a, S>
impl<'a, S> Unpin for IframeBuilder<'a, S>
impl<'a, S> UnwindSafe for IframeBuilder<'a, S>
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