pub struct Snapshot {
pub schema_version: u32,
pub algorithm_version: u32,
pub seed: Srgb,
pub mode: Mode,
pub contrast: ContrastPolicy,
pub tokens: Vec<Token>,
pub checks: Vec<Check>,
pub fallbacks: Vec<String>,
}Expand description
The resolved theme for one seed, mode and contrast policy.
Fields§
§schema_version: u32§algorithm_version: u32§seed: Srgb§mode: Mode§contrast: ContrastPolicy§tokens: Vec<Token>Sorted by name.
checks: Vec<Check>§fallbacks: Vec<String>Roles that fell back to a neutral pairing, with the reason.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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