pub struct ResolveReport {Show 15 fields
pub default_brand_used: bool,
pub vivid_tamed: bool,
pub light_adjusted: bool,
pub dark_adjusted: bool,
pub light_still_failing: bool,
pub dark_still_failing: bool,
pub text_substituted: bool,
pub accent_substituted: bool,
pub light_contrast: f64,
pub dark_contrast: f64,
pub text_on_bg_contrast: f64,
pub accent_on_bg_contrast: f64,
pub success_contrast: f64,
pub warning_contrast: f64,
pub danger_contrast: f64,
}Expand description
Per-case effects recorded during a pipeline run, intended for the CLI to surface to the developer. Building this alongside the tokens means the engine’s reasoning is transparent — no separate “explain” pass that could diverge.
Fields§
§default_brand_used: boolTrue when Case 7 (default-brand fallback) fired.
vivid_tamed: boolTrue when Case 3 reduced chroma on the surface brand.
light_adjusted: boolTrue when Case 5 nudged the light variant.
dark_adjusted: boolTrue when Case 5 nudged the dark variant.
light_still_failing: boolTrue when the (adjusted) light variant still doesn’t clear AA.
dark_still_failing: boolTrue when the (adjusted) dark variant still doesn’t clear AA.
text_substituted: boolTrue when Case 1 had to substitute the text fallback.
accent_substituted: boolTrue when the raw vivid accent failed AA_NON_TEXT against
the page bg and was substituted by the tamed surface.
light_contrast: f64Brand vs LIGHT_BG contrast (post-adaptive).
dark_contrast: f64Brand vs DARK_BG contrast (post-adaptive).
text_on_bg_contrast: f64brand_text vs bg contrast (after the Case 1 final pass).
accent_on_bg_contrast: f64brand_accent vs bg contrast — non-text guard.
success_contrast: f64success/warning/danger contrast vs LIGHT_BG.
warning_contrast: f64§danger_contrast: f64Trait Implementations§
Source§impl Clone for ResolveReport
impl Clone for ResolveReport
Source§fn clone(&self) -> ResolveReport
fn clone(&self) -> ResolveReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more