pub struct VerificationResult { /* private fields */ }Expand description
Struct representing a result of the verification The verification can have many errors and/or many failures
Implementations§
Source§impl VerificationResult
impl VerificationResult
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Has the result errors
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Has the result failures
Sourcepub fn errors(&self) -> Vec<&VerificationEvent>
pub fn errors(&self) -> Vec<&VerificationEvent>
Get the errors
Sourcepub fn failures(&self) -> Vec<&VerificationEvent>
pub fn failures(&self) -> Vec<&VerificationEvent>
Get the failures
Sourcepub fn errors_to_string(&self) -> Vec<String>
pub fn errors_to_string(&self) -> Vec<String>
Get the errors as string
Sourcepub fn failures_to_string(&self) -> Vec<String>
pub fn failures_to_string(&self) -> Vec<String>
Get the failures as string
Sourcepub fn errors_and_failures(&self) -> Vec<&VerificationEvent>
pub fn errors_and_failures(&self) -> Vec<&VerificationEvent>
Get the errors and the failures (all events)
Sourcepub fn add_context<C>(&mut self, context: C)
pub fn add_context<C>(&mut self, context: C)
Add the context to the contexts of self
Sourcepub fn clone_add_context<C>(self, context: C) -> Self
pub fn clone_add_context<C>(self, context: C) -> Self
Clone self and add the context
Sourcepub fn push(&mut self, e: VerificationEvent)
pub fn push(&mut self, e: VerificationEvent)
Push a new error or failure to the VerificationResult
Sourcepub fn push_with_context<C>(&mut self, e: VerificationEvent, context: C)
pub fn push_with_context<C>(&mut self, e: VerificationEvent, context: C)
Push a new error or failure to the VerificationResult add the given context
Sourcepub fn append(&mut self, other: &mut Self)
pub fn append(&mut self, other: &mut Self)
Append the results of ohter to self, emptying the vectors of other
Sourcepub fn append_with_context<C>(&mut self, other: &Self, context: C)
pub fn append_with_context<C>(&mut self, other: &Self, context: C)
Append the results of ohter to self with context
Sourcepub fn append_vec(&mut self, other: &mut Vec<VerificationEvent>)
pub fn append_vec(&mut self, other: &mut Vec<VerificationEvent>)
Append the results of ohter to self, emptying the vectors of other
Sourcepub fn append_errors_from_string_slice(&mut self, errors: &[String])
pub fn append_errors_from_string_slice(&mut self, errors: &[String])
Append strings to self as errors
Sourcepub fn append_failures_from_string_slice(&mut self, failures: &[String])
pub fn append_failures_from_string_slice(&mut self, failures: &[String])
Append strings to self as failures
Sourcepub fn new_errors_from_string_slice(errors: &[String]) -> Self
pub fn new_errors_from_string_slice(errors: &[String]) -> Self
Create new Self with errors from strings
Sourcepub fn new_failures_from_string_slice(errors: &[String]) -> Self
pub fn new_failures_from_string_slice(errors: &[String]) -> Self
Create new Self with failures from strings
Sourcepub fn join_with_context<C>(data: &[Self], context: C) -> Self
pub fn join_with_context<C>(data: &[Self], context: C) -> Self
Join a &Self with context
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationResult
impl Debug for VerificationResult
Source§impl Default for VerificationResult
impl Default for VerificationResult
Source§impl Extend<VerificationEvent> for VerificationResult
impl Extend<VerificationEvent> for VerificationResult
Source§fn extend<T: IntoIterator<Item = VerificationEvent>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = VerificationEvent>>(&mut self, iter: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl From<&[VerificationEvent]> for VerificationResult
impl From<&[VerificationEvent]> for VerificationResult
Source§fn from(value: &[VerificationEvent]) -> Self
fn from(value: &[VerificationEvent]) -> Self
Source§impl From<&VerificationEvent> for VerificationResult
impl From<&VerificationEvent> for VerificationResult
Source§fn from(value: &VerificationEvent) -> Self
fn from(value: &VerificationEvent) -> Self
Auto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnwindSafe for VerificationResult
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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