#[non_exhaustive]pub struct VerificationIssue {
pub severity: IssueSeverity,
pub category: IssueCategory,
pub entry_path: Option<PathBuf>,
pub message: String,
pub context: Option<String>,
}Expand description
Single verification issue.
Construct with VerificationIssue::new or
VerificationIssue::from_error.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.severity: IssueSeverityIssue severity level
category: IssueCategoryIssue category
entry_path: Option<PathBuf>Entry path that triggered issue (if applicable)
message: StringHuman-readable description
context: Option<String>Optional context (compression ratio, target path, etc.)
Implementations§
Source§impl VerificationIssue
impl VerificationIssue
Sourcepub const fn new(
severity: IssueSeverity,
category: IssueCategory,
message: String,
) -> Self
pub const fn new( severity: IssueSeverity, category: IssueCategory, message: String, ) -> Self
Creates an issue with no entry path or context attached.
Sourcepub fn from_error(error: &ArchiveError, entry_path: Option<PathBuf>) -> Self
pub fn from_error(error: &ArchiveError, entry_path: Option<PathBuf>) -> Self
Creates a verification issue from an extraction error.
Trait Implementations§
Source§impl Clone for VerificationIssue
impl Clone for VerificationIssue
Auto Trait Implementations§
impl Freeze for VerificationIssue
impl RefUnwindSafe for VerificationIssue
impl Send for VerificationIssue
impl Sync for VerificationIssue
impl Unpin for VerificationIssue
impl UnsafeUnpin for VerificationIssue
impl UnwindSafe for VerificationIssue
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