#[non_exhaustive]pub struct AddStyleTagOptions {
pub url: Option<String>,
pub source: Option<String>,
}Expand description
Options for Frame::add_style_tag.
Either url (load a remote stylesheet) or source (inline CSS text) must
be supplied.
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.url: Option<String>The href URL of an external stylesheet to load.
source: Option<String>Inline CSS source text to inject as the element’s text content.
Implementations§
Trait Implementations§
Source§impl Clone for AddStyleTagOptions
impl Clone for AddStyleTagOptions
Source§fn clone(&self) -> AddStyleTagOptions
fn clone(&self) -> AddStyleTagOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddStyleTagOptions
impl Debug for AddStyleTagOptions
Source§impl Default for AddStyleTagOptions
impl Default for AddStyleTagOptions
Source§fn default() -> AddStyleTagOptions
fn default() -> AddStyleTagOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddStyleTagOptions
impl RefUnwindSafe for AddStyleTagOptions
impl Send for AddStyleTagOptions
impl Sync for AddStyleTagOptions
impl Unpin for AddStyleTagOptions
impl UnsafeUnpin for AddStyleTagOptions
impl UnwindSafe for AddStyleTagOptions
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