pub struct VerifyResult {
pub errors: Vec<VerifyError>,
pub warnings: Vec<String>,
pub databases_verified: u32,
pub records_verified: u64,
pub passed: bool,
}Expand description
Result of an environment verification.
Fields§
§errors: Vec<VerifyError>Errors found during verification.
warnings: Vec<String>Non-fatal warnings.
databases_verified: u32Number of databases verified.
records_verified: u64Number of records verified.
passed: boolWhether the verification passed (no errors).
Implementations§
Source§impl VerifyResult
impl VerifyResult
Sourcepub fn new() -> VerifyResult
pub fn new() -> VerifyResult
Create a new passing result with no errors or warnings.
Sourcepub fn with_errors(errors: Vec<VerifyError>) -> VerifyResult
pub fn with_errors(errors: Vec<VerifyError>) -> VerifyResult
Create a result with errors.
Sourcepub fn add_error(&mut self, error: VerifyError)
pub fn add_error(&mut self, error: VerifyError)
Add an error to the result.
Sourcepub fn add_warning(&mut self, warning: String)
pub fn add_warning(&mut self, warning: String)
Add a warning to the result.
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Get the number of errors.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Get the number of warnings.
Trait Implementations§
Source§impl Clone for VerifyResult
impl Clone for VerifyResult
Source§fn clone(&self) -> VerifyResult
fn clone(&self) -> VerifyResult
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 VerifyResult
impl Debug for VerifyResult
Source§impl Default for VerifyResult
impl Default for VerifyResult
Source§fn default() -> VerifyResult
fn default() -> VerifyResult
Returns the “default value” for a type. Read more
Source§impl Display for VerifyResult
impl Display for VerifyResult
impl Eq for VerifyResult
Source§impl PartialEq for VerifyResult
impl PartialEq for VerifyResult
Source§fn eq(&self, other: &VerifyResult) -> bool
fn eq(&self, other: &VerifyResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VerifyResult
Auto Trait Implementations§
impl Freeze for VerifyResult
impl RefUnwindSafe for VerifyResult
impl Send for VerifyResult
impl Sync for VerifyResult
impl Unpin for VerifyResult
impl UnsafeUnpin for VerifyResult
impl UnwindSafe for VerifyResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.