pub struct PostVerificationResult {
pub syntax_ok: bool,
pub compiler_ok: bool,
pub semantic_ok: bool,
pub before_checksum: String,
pub after_checksum: String,
pub warnings: Vec<String>,
pub errors: Vec<String>,
}Expand description
Post-verification result.
Fields§
§syntax_ok: boolSyntax validation passed
compiler_ok: boolCompiler validation passed
semantic_ok: boolSemantic validation passed (advisory)
before_checksum: StringChecksums before and after
after_checksum: StringAfter checksum
warnings: Vec<String>Warnings (non-blocking issues)
errors: Vec<String>Errors (blocking issues that would have failed validation)
Implementations§
Source§impl PostVerificationResult
impl PostVerificationResult
Sourcepub fn new(
syntax_ok: bool,
compiler_ok: bool,
before_checksum: String,
after_checksum: String,
) -> Self
pub fn new( syntax_ok: bool, compiler_ok: bool, before_checksum: String, after_checksum: String, ) -> Self
Create a new post-verification result.
Sourcepub fn add_warning(&mut self, warning: impl Into<String>)
pub fn add_warning(&mut self, warning: impl Into<String>)
Add a warning.
Sourcepub fn file_changed(&self) -> bool
pub fn file_changed(&self) -> bool
Check if file changed (checksums differ).
Trait Implementations§
Source§impl Clone for PostVerificationResult
impl Clone for PostVerificationResult
Source§fn clone(&self) -> PostVerificationResult
fn clone(&self) -> PostVerificationResult
Returns a duplicate of the value. Read more
1.0.0 · 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 PostVerificationResult
impl Debug for PostVerificationResult
Source§impl PartialEq for PostVerificationResult
impl PartialEq for PostVerificationResult
impl StructuralPartialEq for PostVerificationResult
Auto Trait Implementations§
impl Freeze for PostVerificationResult
impl RefUnwindSafe for PostVerificationResult
impl Send for PostVerificationResult
impl Sync for PostVerificationResult
impl Unpin for PostVerificationResult
impl UnsafeUnpin for PostVerificationResult
impl UnwindSafe for PostVerificationResult
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<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