ScoreBreakdown

Struct ScoreBreakdown 

Source
pub struct ScoreBreakdown {
Show 16 fields pub widget_complexity: f64, pub layout_depth: f64, pub component_count: f64, pub render_time_p95: f64, pub memory_usage: f64, pub bundle_size: f64, pub wcag_aa_compliance: f64, pub keyboard_navigation: f64, pub screen_reader: f64, pub data_completeness: f64, pub data_freshness: f64, pub schema_validation: f64, pub manifest_completeness: f64, pub card_coverage: f64, pub theme_adherence: f64, pub naming_conventions: f64,
}
Expand description

App Quality Score breakdown per spec (6 orthogonal metrics).

Fields§

§widget_complexity: f64

Cyclomatic complexity (McCabe, 1976)

§layout_depth: f64

Nesting depth penalty

§component_count: f64

Widget count vs viewport

§render_time_p95: f64

95th percentile frame time

§memory_usage: f64

Peak memory vs baseline

§bundle_size: f64

WASM binary size

§wcag_aa_compliance: f64

WCAG 2.1 AA checklist

§keyboard_navigation: f64

Full keyboard support

§screen_reader: f64

ARIA labels coverage

§data_completeness: f64

Missing value ratio

§data_freshness: f64

Staleness penalty

§schema_validation: f64

Type errors

§manifest_completeness: f64

Required fields coverage

§card_coverage: f64

Model/data cards present

§theme_adherence: f64

Design system compliance

§naming_conventions: f64

ID/class naming

Implementations§

Source§

impl ScoreBreakdown

Source

pub fn structural_score(&self) -> f64

Calculate structural score (contributes 25% to total).

Source

pub fn performance_score(&self) -> f64

Calculate performance score (contributes 20% to total).

Source

pub fn accessibility_score(&self) -> f64

Calculate accessibility score (contributes 20% to total).

Source

pub fn data_quality_score(&self) -> f64

Calculate data quality score (contributes 15% to total).

Source

pub fn documentation_score(&self) -> f64

Calculate documentation score (contributes 10% to total).

Source

pub fn consistency_score(&self) -> f64

Calculate consistency score (contributes 10% to total).

Source

pub fn total(&self) -> f64

Calculate total score (0-100).

Trait Implementations§

Source§

impl Clone for ScoreBreakdown

Source§

fn clone(&self) -> ScoreBreakdown

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ScoreBreakdown

Source§

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

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

impl Default for ScoreBreakdown

Source§

fn default() -> ScoreBreakdown

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

impl<'de> Deserialize<'de> for ScoreBreakdown

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ScoreBreakdown

Source§

fn eq(&self, other: &ScoreBreakdown) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ScoreBreakdown

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ScoreBreakdown

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,