pub struct ValidationResult {
pub is_valid: bool,
pub warnings: Vec<String>,
pub errors: Vec<String>,
}Expand description
Result of checkpoint validation.
Fields§
§is_valid: boolWhether the checkpoint is valid for resume.
warnings: Vec<String>Warnings that don’t prevent resume but should be shown.
errors: Vec<String>Errors that prevent resume.
Implementations§
Source§impl ValidationResult
impl ValidationResult
Sourcepub fn with_warning(self, msg: impl Into<String>) -> Self
pub fn with_warning(self, msg: impl Into<String>) -> Self
Add a warning to the result.
Sourcepub fn merge(self, other: ValidationResult) -> Self
pub fn merge(self, other: ValidationResult) -> Self
Merge another validation result into this one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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