pub struct DoctorReport {
pub tool_version: String,
pub tool_config: CheckStatus<String>,
pub repo_path: CheckStatus<String>,
pub repo_is_git: CheckStatus<String>,
pub working_tree: CheckStatus<String>,
pub krypt_config: CheckStatus<String>,
pub link_sources: CheckStatus<String>,
pub link_destinations: CheckStatus<String>,
pub manifest: CheckStatus<String>,
pub platform: CheckStatus<String>,
pub package_manager: CheckStatus<String>,
pub hooks: CheckStatus<String>,
}Expand description
Summary of every diagnostic check.
Serialize this with serde_json for machine-readable output, or call
DoctorReport::render_text for a human-readable report.
Fields§
§tool_version: StringVersion of the krypt binary.
tool_config: CheckStatus<String>Tool config (${XDG_CONFIG}/krypt/config.toml) loaded status + path.
repo_path: CheckStatus<String>Whether the repo path exists on disk.
repo_is_git: CheckStatus<String>Whether the repo path is a git repository (via gix).
working_tree: CheckStatus<String>Whether the git working tree is clean.
krypt_config: CheckStatus<String>Whether .krypt.toml parses and validates.
link_sources: CheckStatus<String>Whether all [[link]] src files exist on disk.
link_destinations: CheckStatus<String>Drift status of all deployed [[link]] destinations.
manifest: CheckStatus<String>Manifest load status + age.
platform: CheckStatus<String>Detected platform.
package_manager: CheckStatus<String>Package manager detection (deferred to #19).
hooks: CheckStatus<String>Hook runner status (deferred to #43).
Implementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn is_all_green(&self) -> bool
pub fn is_all_green(&self) -> bool
Returns true when every applicable check is Ok.
Sourcepub fn render_text(&self) -> String
pub fn render_text(&self) -> String
Render a single-column human-readable report.
Trait Implementations§
Source§impl Debug for DoctorReport
impl Debug for DoctorReport
Source§impl<'de> Deserialize<'de> for DoctorReport
impl<'de> Deserialize<'de> for DoctorReport
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>,
Deserialize this value from the given Serde deserializer. Read more
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