pub struct Doctor {
pub tools: Vec<ToolInfo>,
pub configs: Vec<ResolvedConfig>,
pub maildir_root: Option<PathBuf>,
pub database_path: Option<PathBuf>,
pub post_new_hook: Option<PathBuf>,
pub accounts: Vec<Account>,
pub checks: Vec<Check>,
}Fields§
§tools: Vec<ToolInfo>§configs: Vec<ResolvedConfig>§maildir_root: Option<PathBuf>§database_path: Option<PathBuf>§post_new_hook: Option<PathBuf>§accounts: Vec<Account>§checks: Vec<Check>Implementations§
Source§impl Doctor
impl Doctor
pub fn status(&self) -> CheckStatus
pub fn is_healthy(&self) -> bool
pub fn failures(&self) -> impl Iterator<Item = &Check>
pub fn config(&self, kind: ConfigKind) -> Option<&ResolvedConfig>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Doctor
impl<'de> Deserialize<'de> for Doctor
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 Doctor
impl StructuralPartialEq for Doctor
Auto Trait Implementations§
impl Freeze for Doctor
impl RefUnwindSafe for Doctor
impl Send for Doctor
impl Sync for Doctor
impl Unpin for Doctor
impl UnsafeUnpin for Doctor
impl UnwindSafe for Doctor
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