pub struct CssStyleSheetHeader {Show 18 fields
pub style_sheet_id: StyleSheetId,
pub frame_id: FrameId,
pub source_url: String,
pub source_map_url: Option<String>,
pub origin: StyleSheetOrigin,
pub title: String,
pub owner_node: Option<BackendNodeId>,
pub disabled: bool,
pub has_source_url: Option<bool>,
pub is_inline: bool,
pub is_mutable: bool,
pub is_constructed: bool,
pub start_line: f64,
pub start_column: f64,
pub length: f64,
pub end_line: f64,
pub end_column: f64,
pub loading_failed: Option<bool>,
}
Expand description
CSS stylesheet metainformation. CSSStyleSheetHeader
Fields§
§style_sheet_id: StyleSheetId
The stylesheet identifier.
frame_id: FrameId
Owner frame identifier.
source_url: String
Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported as a CSS module script).
source_map_url: Option<String>
URL of source map associated with the stylesheet (if any).
origin: StyleSheetOrigin
Stylesheet origin.
title: String
Stylesheet title.
owner_node: Option<BackendNodeId>
The backend id for the owner node of the stylesheet.
disabled: bool
Denotes whether the stylesheet is disabled.
has_source_url: Option<bool>
Whether the sourceURL field value comes from the sourceURL comment.
is_inline: bool
Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
is_mutable: bool
Whether this stylesheet is mutable. Inline stylesheets become mutable
after they have been modified via CSSOM API.
<link>
element’s stylesheets become mutable only if DevTools modifies them.
Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
is_constructed: bool
True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
start_line: f64
Line offset of the stylesheet within the resource (zero based).
start_column: f64
Column offset of the stylesheet within the resource (zero based).
length: f64
Size of the content (in characters).
end_line: f64
Line offset of the end of the stylesheet within the resource (zero based).
end_column: f64
Column offset of the end of the stylesheet within the resource (zero based).
loading_failed: Option<bool>
If the style sheet was loaded from a network resource, this indicates when the resource failed to load
Implementations§
Source§impl CssStyleSheetHeader
impl CssStyleSheetHeader
pub fn builder() -> CssStyleSheetHeaderBuilder
Source§impl CssStyleSheetHeader
impl CssStyleSheetHeader
pub const IDENTIFIER: &'static str = "CSS.CSSStyleSheetHeader"
Trait Implementations§
Source§impl Clone for CssStyleSheetHeader
impl Clone for CssStyleSheetHeader
Source§fn clone(&self) -> CssStyleSheetHeader
fn clone(&self) -> CssStyleSheetHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CssStyleSheetHeader
impl Debug for CssStyleSheetHeader
Source§impl<'de> Deserialize<'de> for CssStyleSheetHeader
impl<'de> Deserialize<'de> for CssStyleSheetHeader
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CssStyleSheetHeader, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CssStyleSheetHeader, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CssStyleSheetHeader
impl PartialEq for CssStyleSheetHeader
Source§impl Serialize for CssStyleSheetHeader
impl Serialize for CssStyleSheetHeader
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CssStyleSheetHeader
Auto Trait Implementations§
impl Freeze for CssStyleSheetHeader
impl RefUnwindSafe for CssStyleSheetHeader
impl Send for CssStyleSheetHeader
impl Sync for CssStyleSheetHeader
impl Unpin for CssStyleSheetHeader
impl UnwindSafe for CssStyleSheetHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more