pub struct Report {Show 14 fields
pub tool: String,
pub version: String,
pub mode: String,
pub root: Option<String>,
pub url: Option<String>,
pub started_at: String,
pub duration_ms: u64,
pub options: OptionsBlock,
pub summary: Summary,
pub files: Vec<FileRecord>,
pub unknown_files: Vec<String>,
pub error_files: Vec<String>,
pub verify_failed_files: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Full JSON report document.
Implements the full round trip: Deserialize dispatches on mode to
pick the summary shape (the per-mode summaries share field names, so an
untagged parse would silently coerce a fix report into the verify
summary).
Fields§
§tool: String§version: String§mode: String§root: Option<String>§url: Option<String>§started_at: String§duration_ms: u64§options: OptionsBlock§summary: Summary§files: Vec<FileRecord>§unknown_files: Vec<String>§error_files: Vec<String>§verify_failed_files: Vec<String>Paths whose verify record is failed (fix mode only). Omitted when
the gate is clean, so other modes stay schema-compatible.
warnings: Vec<String>Non-fatal traversal/ignore warnings (unreadable directories etc.).
In verify/fix an unreadable subtree fails the gate, so a non-empty
list there always accompanies exit code 3. Omitted when empty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
Deserialization intermediate for Report: the summary stays a raw
value until mode selects its shape. The per-mode summaries share field
names (passed/failed exist in both verify and fix), so an untagged
parse would silently coerce a fix report into the verify summary.
impl<'de> Deserialize<'de> for Report
Deserialization intermediate for Report: the summary stays a raw
value until mode selects its shape. The per-mode summaries share field
names (passed/failed exist in both verify and fix), so an untagged
parse would silently coerce a fix report into the verify summary.
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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