#[non_exhaustive]pub struct ContentOptions {
pub include_shadow: Option<bool>,
}Expand description
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.include_shadow: Option<bool>Serialize open shadow roots as declarative shadow DOM
(<template shadowrootmode="open">), which plain content() leaves
out. Closed shadow roots are never included.
Implementations§
Source§impl ContentOptions
impl ContentOptions
Sourcepub fn include_shadow(self, include_shadow: bool) -> Self
pub fn include_shadow(self, include_shadow: bool) -> Self
Include open shadow roots as declarative shadow DOM.
Trait Implementations§
Source§impl Clone for ContentOptions
impl Clone for ContentOptions
Source§impl Debug for ContentOptions
impl Debug for ContentOptions
Source§impl Default for ContentOptions
impl Default for ContentOptions
Auto Trait Implementations§
impl Freeze for ContentOptions
impl RefUnwindSafe for ContentOptions
impl Send for ContentOptions
impl Sync for ContentOptions
impl Unpin for ContentOptions
impl UnsafeUnpin for ContentOptions
impl UnwindSafe for ContentOptions
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