Skip to main content

ResolveReport

Struct ResolveReport 

Source
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: bool

True when Case 7 (default-brand fallback) fired.

§vivid_tamed: bool

True when Case 3 reduced chroma on the surface brand.

§light_adjusted: bool

True when Case 5 nudged the light variant.

§dark_adjusted: bool

True when Case 5 nudged the dark variant.

§light_still_failing: bool

True when the (adjusted) light variant still doesn’t clear AA.

§dark_still_failing: bool

True when the (adjusted) dark variant still doesn’t clear AA.

§text_substituted: bool

True when Case 1 had to substitute the text fallback.

§accent_substituted: bool

True when the raw vivid accent failed AA_NON_TEXT against the page bg and was substituted by the tamed surface.

§light_contrast: f64

Brand vs LIGHT_BG contrast (post-adaptive).

§dark_contrast: f64

Brand vs DARK_BG contrast (post-adaptive).

§text_on_bg_contrast: f64

brand_text vs bg contrast (after the Case 1 final pass).

§accent_on_bg_contrast: f64

brand_accent vs bg contrast — non-text guard.

§success_contrast: f64

success/warning/danger contrast vs LIGHT_BG.

§warning_contrast: f64§danger_contrast: f64

Trait Implementations§

Source§

impl Clone for ResolveReport

Source§

fn clone(&self) -> ResolveReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResolveReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ResolveReport

Source§

fn default() -> ResolveReport

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.