pub struct UnusedAtRule {
pub kind: UnusedAtRuleKind,
pub name: String,
pub path: String,
pub actions: Vec<CssCandidateAction>,
}Expand description
An unused CSS at-rule entity (an @property registration with no var()
reference, or an @layer declaration never populated), located by its first
definition. A cleanup candidate, never a gated finding.
Fields§
§kind: UnusedAtRuleKindWhich kind of at-rule entity is unused.
name: StringThe entity name (--x for @property, the layer name for @layer).
path: StringProject-root-relative, forward-slash path to the first defining stylesheet.
actions: Vec<CssCandidateAction>Read-only verification step(s) before removal (parity with other findings).
Trait Implementations§
Source§impl Clone for UnusedAtRule
impl Clone for UnusedAtRule
Source§impl Debug for UnusedAtRule
impl Debug for UnusedAtRule
Source§impl<'de> Deserialize<'de> for UnusedAtRule
impl<'de> Deserialize<'de> for UnusedAtRule
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 UnusedAtRule
impl RefUnwindSafe for UnusedAtRule
impl Send for UnusedAtRule
impl Sync for UnusedAtRule
impl Unpin for UnusedAtRule
impl UnsafeUnpin for UnusedAtRule
impl UnwindSafe for UnusedAtRule
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