pub struct QualityScoreBuilder { /* private fields */ }Expand description
Builder for constructing AppQualityScore.
Implementations§
Source§impl QualityScoreBuilder
impl QualityScoreBuilder
Sourcepub fn structural(self, complexity: f64, depth: f64, count: f64) -> Self
pub fn structural(self, complexity: f64, depth: f64, count: f64) -> Self
Set structural metrics.
Sourcepub fn performance(self, render_time: f64, memory: f64, bundle: f64) -> Self
pub fn performance(self, render_time: f64, memory: f64, bundle: f64) -> Self
Set performance metrics.
Sourcepub fn accessibility(self, wcag: f64, keyboard: f64, screen_reader: f64) -> Self
pub fn accessibility(self, wcag: f64, keyboard: f64, screen_reader: f64) -> Self
Set accessibility metrics.
Sourcepub fn data_quality(
self,
completeness: f64,
freshness: f64,
schema: f64,
) -> Self
pub fn data_quality( self, completeness: f64, freshness: f64, schema: f64, ) -> Self
Set data quality metrics.
Sourcepub fn documentation(self, manifest: f64, cards: f64) -> Self
pub fn documentation(self, manifest: f64, cards: f64) -> Self
Set documentation metrics.
Sourcepub fn consistency(self, theme: f64, naming: f64) -> Self
pub fn consistency(self, theme: f64, naming: f64) -> Self
Set consistency metrics.
Sourcepub fn build(self) -> AppQualityScore
pub fn build(self) -> AppQualityScore
Build the final quality score.
Trait Implementations§
Source§impl Clone for QualityScoreBuilder
impl Clone for QualityScoreBuilder
Source§fn clone(&self) -> QualityScoreBuilder
fn clone(&self) -> QualityScoreBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QualityScoreBuilder
impl Debug for QualityScoreBuilder
Source§impl Default for QualityScoreBuilder
impl Default for QualityScoreBuilder
Source§fn default() -> QualityScoreBuilder
fn default() -> QualityScoreBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QualityScoreBuilder
impl RefUnwindSafe for QualityScoreBuilder
impl Send for QualityScoreBuilder
impl Sync for QualityScoreBuilder
impl Unpin for QualityScoreBuilder
impl UnwindSafe for QualityScoreBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().