pub struct ImpactScore {
pub node_id: String,
pub direct_errors: usize,
pub downstream_errors: usize,
pub pagerank_score: f64,
pub total_impact: f64,
}Expand description
Impact score for a node
Fields§
§node_id: StringNode ID
direct_errors: usizeDirect error count at this node
downstream_errors: usizeDownstream errors caused by this node
pagerank_score: f64PageRank-style score (higher = more impact)
total_impact: f64Combined impact score
Trait Implementations§
Source§impl Clone for ImpactScore
impl Clone for ImpactScore
Source§fn clone(&self) -> ImpactScore
fn clone(&self) -> ImpactScore
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 ImpactScore
impl Debug for ImpactScore
Source§impl<'de> Deserialize<'de> for ImpactScore
impl<'de> Deserialize<'de> for ImpactScore
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
Auto Trait Implementations§
impl Freeze for ImpactScore
impl RefUnwindSafe for ImpactScore
impl Send for ImpactScore
impl Sync for ImpactScore
impl Unpin for ImpactScore
impl UnwindSafe for ImpactScore
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 more