pub struct NearDuplicateThemeToken {
pub token: String,
pub value: String,
pub path: String,
pub line: u32,
pub nearest_token: NearestStylingToken,
pub actions: Vec<CssCandidateAction>,
}Expand description
A Tailwind v4 @theme token that appears to duplicate an existing token by
value. Emitted conservatively for comparable token namespaces, with the
nearest existing token named so an agent has a concrete reuse target.
Fields§
§token: StringThe full custom property as authored, including the -- prefix.
value: StringThe normalized authored token value.
path: StringProject-root-relative, forward-slash path to the token definition.
line: u321-based line of the token definition inside the @theme block.
nearest_token: NearestStylingTokenThe nearest existing token candidate to reuse instead.
actions: Vec<CssCandidateAction>Read-only guidance step(s) before replacing the token reference.
Trait Implementations§
Source§impl Clone for NearDuplicateThemeToken
impl Clone for NearDuplicateThemeToken
Source§impl Debug for NearDuplicateThemeToken
impl Debug for NearDuplicateThemeToken
Source§impl<'de> Deserialize<'de> for NearDuplicateThemeToken
impl<'de> Deserialize<'de> for NearDuplicateThemeToken
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 NearDuplicateThemeToken
impl RefUnwindSafe for NearDuplicateThemeToken
impl Send for NearDuplicateThemeToken
impl Sync for NearDuplicateThemeToken
impl Unpin for NearDuplicateThemeToken
impl UnsafeUnpin for NearDuplicateThemeToken
impl UnwindSafe for NearDuplicateThemeToken
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