pub struct Issue {
pub id: &'static str,
pub severity: Severity,
pub message: &'static str,
pub path: Option<String>,
pub spec_ref: &'static str,
pub line: Option<u32>,
pub col: Option<u32>,
}Expand description
A single validation finding.
Fields§
§id: &'static strStable rule identifier, e.g. “VAST-2.0-root-version”.
severity: SeverityEffective severity after applying any caller overrides.
message: &'static strHuman-readable message. Static string; no allocation on the hot path.
path: Option<String>XPath-like location in the document, e.g. /VAST/Ad\[0\]/InLine/AdSystem.
None when the issue applies to the document as a whole.
spec_ref: &'static strShort spec reference, e.g. “IAB VAST 4.1 §3.4.1”.
line: Option<u32>1-based line number of the element that triggered this issue. None for document-level issues (e.g. parse errors, missing root).
col: Option<u32>1-based column number (byte offset within the line) of the element. None for document-level issues.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
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