pub struct ValidationDiagnostic {
pub code: &'static str,
pub severity: ValidationSeverity,
pub message: String,
pub path: Option<String>,
pub location: Option<String>,
pub spec_ref: Option<&'static str>,
pub hint: Option<String>,
}Expand description
Structured validation diagnostic entry.
Fields§
§code: &'static strStable machine-readable diagnostic code.
severity: ValidationSeveritySeverity classification.
message: StringHuman-readable description.
path: Option<String>Optional path in archive related to this diagnostic.
location: Option<String>Optional section/hint location (manifest/spine/nav/etc).
spec_ref: Option<&'static str>Optional EPUB spec reference label.
hint: Option<String>Optional remediation hint.
Trait Implementations§
Source§impl Clone for ValidationDiagnostic
impl Clone for ValidationDiagnostic
Source§fn clone(&self) -> ValidationDiagnostic
fn clone(&self) -> ValidationDiagnostic
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 ValidationDiagnostic
impl Debug for ValidationDiagnostic
Source§impl PartialEq for ValidationDiagnostic
impl PartialEq for ValidationDiagnostic
impl Eq for ValidationDiagnostic
impl StructuralPartialEq for ValidationDiagnostic
Auto Trait Implementations§
impl Freeze for ValidationDiagnostic
impl RefUnwindSafe for ValidationDiagnostic
impl Send for ValidationDiagnostic
impl Sync for ValidationDiagnostic
impl Unpin for ValidationDiagnostic
impl UnsafeUnpin for ValidationDiagnostic
impl UnwindSafe for ValidationDiagnostic
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