pub struct AddStyleTagOptions {
pub content: Option<String>,
pub url: Option<String>,
pub path: Option<String>,
}Expand description
Options for adding a style tag to the page
See: https://playwright.dev/docs/api/class-page#page-add-style-tag
Fields§
§content: Option<String>Raw CSS content to inject
url: Option<String>URL of the <link> tag to add
path: Option<String>Path to a CSS file to inject
Implementations§
Source§impl AddStyleTagOptions
impl AddStyleTagOptions
Sourcepub fn builder() -> AddStyleTagOptionsBuilder
pub fn builder() -> AddStyleTagOptionsBuilder
Creates a new builder for AddStyleTagOptions
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 · 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