pub struct ConsensusConstituent {
pub finding_id: String,
pub assertion_text: String,
pub raw_score: f64,
pub adjusted_score: f64,
pub weight: f64,
pub n_replications: usize,
pub n_replicated: usize,
pub n_failed_replications: usize,
}Expand description
One finding’s contribution to a consensus result.
Fields§
§finding_id: String§assertion_text: String§raw_score: f64Original Confidence.score from the finding, before any
adjustments.
adjusted_score: f64raw_score after replication / review-state adjustments.
>= raw_score if the finding has successful replications,
< raw_score if the finding is contested or has failed
replications.
weight: f64Final weight in the consensus computation.
n_replications: usizeNumber of Replication records targeting this finding,
broken down by outcome. Useful for the rendering layer.
n_replicated: usize§n_failed_replications: usizeTrait Implementations§
Source§impl Clone for ConsensusConstituent
impl Clone for ConsensusConstituent
Source§fn clone(&self) -> ConsensusConstituent
fn clone(&self) -> ConsensusConstituent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsensusConstituent
impl Debug for ConsensusConstituent
Source§impl<'de> Deserialize<'de> for ConsensusConstituent
impl<'de> Deserialize<'de> for ConsensusConstituent
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 ConsensusConstituent
impl RefUnwindSafe for ConsensusConstituent
impl Send for ConsensusConstituent
impl Sync for ConsensusConstituent
impl Unpin for ConsensusConstituent
impl UnsafeUnpin for ConsensusConstituent
impl UnwindSafe for ConsensusConstituent
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