pub struct NearestStylingToken {
pub name: String,
pub value: String,
pub path: String,
pub line: u32,
pub distance: f64,
}Expand description
A styling token candidate that can replace or explain a finding.
Fields§
§name: StringToken name, e.g. --color-brand.
value: StringNormalized token value.
path: StringProject-root-relative, forward-slash definition path.
line: u321-based definition line.
distance: f64Distance from the finding value. Lower is closer; units depend on the comparable token namespace.
Trait Implementations§
Source§impl Clone for NearestStylingToken
impl Clone for NearestStylingToken
Source§impl Debug for NearestStylingToken
impl Debug for NearestStylingToken
Source§impl<'de> Deserialize<'de> for NearestStylingToken
impl<'de> Deserialize<'de> for NearestStylingToken
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 NearestStylingToken
impl RefUnwindSafe for NearestStylingToken
impl Send for NearestStylingToken
impl Sync for NearestStylingToken
impl Unpin for NearestStylingToken
impl UnsafeUnpin for NearestStylingToken
impl UnwindSafe for NearestStylingToken
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