pub struct UnresolvedClassReference {
pub class: String,
pub suggestion: String,
pub path: String,
pub line: u32,
pub actions: Vec<CssCandidateAction>,
}Expand description
A static class / className token in markup that matches no CSS class
defined anywhere in the project but is one edit away from a class that IS
defined (a likely typo or stale rename). The CSS analogue of an unresolved
import. A candidate, never a gated finding: the token could be defined in
CSS-in-JS or an external stylesheet the parser never sees.
Fields§
§class: StringThe static class token referenced in markup (no dot).
suggestion: StringThe defined CSS class one edit away: the likely intended class.
path: StringProject-root-relative, forward-slash path to the markup file.
line: u321-based line of the class / className attribute.
actions: Vec<CssCandidateAction>Read-only verification step(s) before fixing the reference. Always at
least one entry, so consumers can iterate actions uniformly across
every finding type.
Trait Implementations§
Source§impl Clone for UnresolvedClassReference
impl Clone for UnresolvedClassReference
Source§impl Debug for UnresolvedClassReference
impl Debug for UnresolvedClassReference
Source§impl<'de> Deserialize<'de> for UnresolvedClassReference
impl<'de> Deserialize<'de> for UnresolvedClassReference
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 UnresolvedClassReference
impl RefUnwindSafe for UnresolvedClassReference
impl Send for UnresolvedClassReference
impl Sync for UnresolvedClassReference
impl Unpin for UnresolvedClassReference
impl UnsafeUnpin for UnresolvedClassReference
impl UnwindSafe for UnresolvedClassReference
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