pub struct Token {
pub path: String,
pub ty: String,
pub value: Value,
pub alias: Option<String>,
pub description: Option<String>,
pub extensions: Option<Value>,
pub fallback: bool,
}Expand description
A resolved token.
Fields§
§path: String§ty: StringThe DTCG type.
value: Value§alias: Option<String>The path this token directly aliases, if it is an alias.
description: Option<String>§extensions: Option<Value>$extensions, kept as written.
fallback: boolWhether the value came from the fallback theme after a problem.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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