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: f64Cyclomatic complexity (McCabe, 1976)
layout_depth: f64Nesting depth penalty
component_count: f64Widget count vs viewport
render_time_p95: f6495th percentile frame time
memory_usage: f64Peak memory vs baseline
bundle_size: f64WASM binary size
wcag_aa_compliance: f64WCAG 2.1 AA checklist
Full keyboard support
screen_reader: f64ARIA labels coverage
data_completeness: f64Missing value ratio
data_freshness: f64Staleness penalty
schema_validation: f64Type errors
manifest_completeness: f64Required fields coverage
card_coverage: f64Model/data cards present
theme_adherence: f64Design system compliance
naming_conventions: f64ID/class naming
Implementations§
Source§impl ScoreBreakdown
impl ScoreBreakdown
Sourcepub fn structural_score(&self) -> f64
pub fn structural_score(&self) -> f64
Calculate structural score (contributes 25% to total).
Sourcepub fn performance_score(&self) -> f64
pub fn performance_score(&self) -> f64
Calculate performance score (contributes 20% to total).
Sourcepub fn accessibility_score(&self) -> f64
pub fn accessibility_score(&self) -> f64
Calculate accessibility score (contributes 20% to total).
Sourcepub fn data_quality_score(&self) -> f64
pub fn data_quality_score(&self) -> f64
Calculate data quality score (contributes 15% to total).
Sourcepub fn documentation_score(&self) -> f64
pub fn documentation_score(&self) -> f64
Calculate documentation score (contributes 10% to total).
Sourcepub fn consistency_score(&self) -> f64
pub fn consistency_score(&self) -> f64
Calculate consistency score (contributes 10% to total).
Trait Implementations§
Source§impl Clone for ScoreBreakdown
impl Clone for ScoreBreakdown
Source§fn clone(&self) -> ScoreBreakdown
fn clone(&self) -> ScoreBreakdown
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoreBreakdown
impl Debug for ScoreBreakdown
Source§impl Default for ScoreBreakdown
impl Default for ScoreBreakdown
Source§fn default() -> ScoreBreakdown
fn default() -> ScoreBreakdown
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreBreakdown
impl<'de> Deserialize<'de> for ScoreBreakdown
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl PartialEq for ScoreBreakdown
Source§impl Serialize for ScoreBreakdown
impl Serialize for ScoreBreakdown
impl StructuralPartialEq for ScoreBreakdown
Auto Trait Implementations§
impl Freeze for ScoreBreakdown
impl RefUnwindSafe for ScoreBreakdown
impl Send for ScoreBreakdown
impl Sync for ScoreBreakdown
impl Unpin for ScoreBreakdown
impl UnwindSafe for ScoreBreakdown
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)