#[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