pub struct CSSProperty {
pub name: String,
pub value: String,
pub important: Option<bool>,
pub implicit: Option<bool>,
pub text: Option<String>,
pub parsedOk: Option<bool>,
pub disabled: Option<bool>,
pub range: Option<SourceRange>,
pub longhandProperties: Option<Vec<CSSProperty>>,
}Expand description
CSS property declaration data.
Fields§
§name: StringThe property name.
value: StringThe property value.
important: Option<bool>Whether the property has “!important” annotation (implies ‘false’ if absent).
implicit: Option<bool>Whether the property is implicit (implies ‘false’ if absent).
text: Option<String>The full property text as specified in the style.
parsedOk: Option<bool>Whether the property is understood by the browser (implies ‘true’ if absent).
disabled: Option<bool>Whether the property is disabled by the user (present for source-based properties only).
range: Option<SourceRange>The entire property range in the enclosing style declaration (if available).
longhandProperties: Option<Vec<CSSProperty>>Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
Trait Implementations§
Source§impl Clone for CSSProperty
impl Clone for CSSProperty
Source§fn clone(&self) -> CSSProperty
fn clone(&self) -> CSSProperty
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 CSSProperty
impl Debug for CSSProperty
Source§impl Default for CSSProperty
impl Default for CSSProperty
Source§fn default() -> CSSProperty
fn default() -> CSSProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CSSProperty
impl<'de> Deserialize<'de> for CSSProperty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CSSProperty
impl RefUnwindSafe for CSSProperty
impl Send for CSSProperty
impl Sync for CSSProperty
impl Unpin for CSSProperty
impl UnsafeUnpin for CSSProperty
impl UnwindSafe for CSSProperty
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