pub(crate) struct StyleSheetData {Show 15 fields
pub(crate) resource_id: String,
pub(crate) browsing_context_id: u32,
pub(crate) href: Option<String>,
pub(crate) node_href: String,
pub(crate) disabled: bool,
pub(crate) title: Option<String>,
pub(crate) system: bool,
pub(crate) is_new: bool,
pub(crate) file_name: Option<String>,
pub(crate) source_map_url: Option<String>,
pub(crate) source_map_base_url: Option<String>,
pub(crate) style_sheet_index: i32,
pub(crate) constructed: bool,
pub(crate) rule_count: u32,
pub(crate) at_rules: Vec<String>,
}Expand description
Fields§
§resource_id: StringUnique identifier for this stylesheet.
browsing_context_id: u32Current browsing context id.
href: Option<String>The URL of the stylesheet. Optional for inline stylesheets.
node_href: StringThe URL of the document that owns this stylesheet.
disabled: boolWhether the stylesheet is disabled.
title: Option<String>The title of the stylesheet.
system: boolWhether this is a browser stylesheet.
is_new: boolWhether this stylesheet was created by DevTools.
file_name: Option<String>Optional file name used for local files.
source_map_url: Option<String>Optional source map URL.
source_map_base_url: Option<String>§style_sheet_index: i32The index of this stylesheet in the document’s stylesheet list.
constructed: boolwhether the stylesheet was constructed using Web APIs.
rule_count: u32Total count of individual CSS rules within that specific stylesheet.
at_rules: Vec<String>List of media query metadata (ex: @media, @keyframes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyleSheetData
impl RefUnwindSafe for StyleSheetData
impl Send for StyleSheetData
impl Sync for StyleSheetData
impl Unpin for StyleSheetData
impl UnsafeUnpin for StyleSheetData
impl UnwindSafe for StyleSheetData
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert