pub struct ValidationOutcome { /* private fields */ }Expand description
Aggregate validation outcome for one proposal.
Implementations§
Source§impl ValidationOutcome
impl ValidationOutcome
pub fn new(score: Score, reports: Vec<ValidatorReport>) -> Self
pub fn score(&self) -> Score
pub fn reports(&self) -> &[ValidatorReport]
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Convenience: true iff all reports passed. Independent of score.
Trait Implementations§
Source§impl Clone for ValidationOutcome
impl Clone for ValidationOutcome
Source§impl Debug for ValidationOutcome
impl Debug for ValidationOutcome
Source§impl<'de> Deserialize<'de> for ValidationOutcome
impl<'de> Deserialize<'de> for ValidationOutcome
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
impl Eq for ValidationOutcome
Source§impl PartialEq for ValidationOutcome
impl PartialEq for ValidationOutcome
Source§impl Serialize for ValidationOutcome
impl Serialize for ValidationOutcome
impl StructuralPartialEq for ValidationOutcome
Auto Trait Implementations§
impl Freeze for ValidationOutcome
impl RefUnwindSafe for ValidationOutcome
impl Send for ValidationOutcome
impl Sync for ValidationOutcome
impl Unpin for ValidationOutcome
impl UnsafeUnpin for ValidationOutcome
impl UnwindSafe for ValidationOutcome
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