pub struct DoctorEnvironment {
pub os: String,
pub arch: String,
pub data_root: Option<String>,
pub config_path: Option<String>,
pub documents_root: Option<String>,
pub sources_root: Option<String>,
pub manual_roots: Vec<String>,
pub tldr_roots: Vec<String>,
}Expand description
Effective local paths and host identity inspected by mant --doctor.
Fields§
§os: StringRust host operating-system family.
arch: StringRust host processor architecture.
data_root: Option<String>Platform-native ManT data root, when it could be derived.
config_path: Option<String>Effective sources.toml path, when the data root is available.
documents_root: Option<String>Personal Markdown root, when the data root is available.
sources_root: Option<String>Managed source root, when the data root is available.
manual_roots: Vec<String>Native manual roots in effective precedence order.
tldr_roots: Vec<String>tldr cache roots in effective read order.
Trait Implementations§
Source§impl Clone for DoctorEnvironment
impl Clone for DoctorEnvironment
Source§fn clone(&self) -> DoctorEnvironment
fn clone(&self) -> DoctorEnvironment
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 DoctorEnvironment
impl Debug for DoctorEnvironment
Source§impl<'de> Deserialize<'de> for DoctorEnvironment
impl<'de> Deserialize<'de> for DoctorEnvironment
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 DoctorEnvironment
Source§impl JsonSchema for DoctorEnvironment
impl JsonSchema for DoctorEnvironment
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DoctorEnvironment
impl PartialEq for DoctorEnvironment
Source§impl Serialize for DoctorEnvironment
impl Serialize for DoctorEnvironment
impl StructuralPartialEq for DoctorEnvironment
Auto Trait Implementations§
impl Freeze for DoctorEnvironment
impl RefUnwindSafe for DoctorEnvironment
impl Send for DoctorEnvironment
impl Sync for DoctorEnvironment
impl Unpin for DoctorEnvironment
impl UnsafeUnpin for DoctorEnvironment
impl UnwindSafe for DoctorEnvironment
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