pub struct DoctorReport {
pub schema_version: u32,
pub generated_at: String,
pub checks: Vec<Finding>,
pub summary: Summary,
}Expand description
Top-level payload emitted by repograph doctor. schema_version is the
contract — additive-only at 1; breaking changes bump it.
Fields§
§schema_version: u32§generated_at: String§checks: Vec<Finding>§summary: SummaryImplementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn run(
config_load: Result<&Config, &RepographError>,
config_path: &Path,
generated_at: String,
) -> Self
pub fn run( config_load: Result<&Config, &RepographError>, config_path: &Path, generated_at: String, ) -> Self
Run every check applicable to the given config-load outcome and return
a sorted DoctorReport.
config_loadisOk(&config)when the config loaded (including the “missing file → empty config” case), orErr(&err)when the load itself surfaced an error (malformed TOML, I/O error other thanNotFound). The binary mapsPermissionDeniedto exit4before calling this function; what reaches here isConfigParseor other non-permissionIofailures.config_pathis the file theConfigPresentcheck probes and reports in itstargetfield.generated_atis the RFC 3339 UTC timestamp the binary stamps via thetimecrate (core stays free of time deps, same pattern ascontext-command).
Trait Implementations§
Source§impl Clone for DoctorReport
impl Clone for DoctorReport
Source§fn clone(&self) -> DoctorReport
fn clone(&self) -> DoctorReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DoctorReport
impl Debug for DoctorReport
Auto Trait Implementations§
impl Freeze for DoctorReport
impl RefUnwindSafe for DoctorReport
impl Send for DoctorReport
impl Sync for DoctorReport
impl Unpin for DoctorReport
impl UnsafeUnpin for DoctorReport
impl UnwindSafe for DoctorReport
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