#[non_exhaustive]pub struct Iframe {
pub data_map: DataMap,
pub src: Option<Cow<'static, str>>,
pub srcdoc: Option<Cow<'static, str>>,
pub name: Option<Cow<'static, str>>,
pub sandbox: Option<Cow<'static, str>>,
pub allow: Option<Cow<'static, str>>,
pub allowfullscreen: Option<Cow<'static, str>>,
pub width: Option<Cow<'static, str>>,
pub height: Option<Cow<'static, str>>,
pub referrerpolicy: Option<Cow<'static, str>>,
pub loading: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <iframe>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_map: DataMap
§src: Option<Cow<'static, str>>
Address of the resource
srcdoc: Option<Cow<'static, str>>
A document to render in the iframe
name: Option<Cow<'static, str>>
Name of content navigable
sandbox: Option<Cow<'static, str>>
Security rules for nested content
allow: Option<Cow<'static, str>>
Permissions policy to be applied to the iframe’s contents
allowfullscreen: Option<Cow<'static, str>>
Whether to allow the iframe’s contents to use requestFullscreen()
width: Option<Cow<'static, str>>
Horizontal dimension
height: Option<Cow<'static, str>>
Vertical dimension
referrerpolicy: Option<Cow<'static, str>>
Referrer policy for fetches initiated by the element
loading: Option<Cow<'static, str>>
Used when determining loading deferral
Trait Implementations§
source§impl PartialEq<Iframe> for Iframe
impl PartialEq<Iframe> for Iframe
source§impl RenderElement for Iframe
impl RenderElement for Iframe
impl StructuralPartialEq for Iframe
Auto Trait Implementations§
impl RefUnwindSafe for Iframe
impl Send for Iframe
impl Sync for Iframe
impl Unpin for Iframe
impl UnwindSafe for Iframe
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