pub struct ValidationResult {
pub passed: bool,
pub total_checks: usize,
pub passed_checks: usize,
pub failed_checks: usize,
pub warnings: Vec<ValidationWarning>,
pub errors: Vec<ValidationError>,
pub breaking_changes: Vec<BreakingChange>,
}Will be extracted to mockforge-contracts crate
Expand description
Result of contract validation with detailed breakdown
Fieldsยง
ยงpassed: boolWill be extracted to mockforge-contracts crate
Whether all validation checks passed
total_checks: usizeWill be extracted to mockforge-contracts crate
Total number of validation checks performed
passed_checks: usizeWill be extracted to mockforge-contracts crate
Number of checks that passed
failed_checks: usizeWill be extracted to mockforge-contracts crate
Number of checks that failed
warnings: Vec<ValidationWarning>Will be extracted to mockforge-contracts crate
Non-blocking warnings encountered during validation
errors: Vec<ValidationError>Will be extracted to mockforge-contracts crate
Validation errors that prevent the contract from being valid
breaking_changes: Vec<BreakingChange>Will be extracted to mockforge-contracts crate
Breaking changes detected compared to previous contract version
Implementationsยง
Sourceยงimpl ValidationResult
impl ValidationResult
Sourcepub fn new() -> Self
๐Deprecated: Will be extracted to mockforge-contracts crate
pub fn new() -> Self
Will be extracted to mockforge-contracts crate
Create a new empty validation result
Sourcepub fn add_error(&mut self, error: ValidationError)
๐Deprecated: Will be extracted to mockforge-contracts crate
pub fn add_error(&mut self, error: ValidationError)
Will be extracted to mockforge-contracts crate
Add a validation error (marks result as failed)
Sourcepub fn add_warning(&mut self, warning: ValidationWarning)
๐Deprecated: Will be extracted to mockforge-contracts crate
pub fn add_warning(&mut self, warning: ValidationWarning)
Will be extracted to mockforge-contracts crate
Add a validation warning (does not fail the result)
Sourcepub fn add_breaking_change(&mut self, change: BreakingChange)
๐Deprecated: Will be extracted to mockforge-contracts crate
pub fn add_breaking_change(&mut self, change: BreakingChange)
Will be extracted to mockforge-contracts crate
Add a breaking change (marks result as failed)
Sourcepub fn add_success(&mut self)
๐Deprecated: Will be extracted to mockforge-contracts crate
pub fn add_success(&mut self)
Will be extracted to mockforge-contracts crate
Record a successful validation check
Trait Implementationsยง
Sourceยงimpl Clone for ValidationResult
impl Clone for ValidationResult
Sourceยงfn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for ValidationResult
impl Debug for ValidationResult
Sourceยงimpl Default for ValidationResult
impl Default for ValidationResult
Sourceยงimpl<'de> Deserialize<'de> for ValidationResult
impl<'de> Deserialize<'de> for ValidationResult
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>,
Auto Trait Implementationsยง
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnsafeUnpin for ValidationResult
impl UnwindSafe for ValidationResult
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> 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