pub struct DoctorReport {
pub target: String,
pub healthy: bool,
pub stages: Vec<DoctorStage>,
}Expand description
Structured diagnostic report returned by sdkt plugin doctor.
Fields§
§target: StringThe target name or path evaluated.
healthy: boolWhether all executed stages passed.
stages: Vec<DoctorStage>Ordered list of stages executed up to the first failure (or all stages if healthy).
Implementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn add_stage(
&mut self,
name: impl Into<String>,
status: DoctorStageStatus,
detail: impl Into<String>,
)
pub fn add_stage( &mut self, name: impl Into<String>, status: DoctorStageStatus, detail: impl Into<String>, )
Record a stage result. If status is Failed, marks healthy as false.
Sourcepub fn failed_stage(&self) -> Option<&DoctorStage>
pub fn failed_stage(&self) -> Option<&DoctorStage>
The first failing stage, if any.
Trait Implementations§
Source§impl Clone for DoctorReport
impl Clone for DoctorReport
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
impl Eq for DoctorReport
Source§impl PartialEq for DoctorReport
impl PartialEq for DoctorReport
Source§impl Serialize for DoctorReport
impl Serialize for DoctorReport
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.