#[non_exhaustive]pub struct SkillDir {
pub id: String,
pub path: Location,
pub requires: Option<Location>,
pub preferred: bool,
}Expand description
A directory some tool reads skills from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringA short, stable identifier, used by Tool to refer to it.
path: LocationWhere the directory is.
requires: Option<Location>The tool home that has to exist before this directory may be created.
None for a vendor-neutral directory, which belongs to no single tool
and may be created whenever a tool that reads it is installed.
preferred: boolPreferred when two choices are otherwise equal. Set for the vendor-neutral directory, because more tools read it.
Implementations§
Trait Implementations§
impl Eq for SkillDir
impl StructuralPartialEq for SkillDir
Auto Trait Implementations§
impl Freeze for SkillDir
impl RefUnwindSafe for SkillDir
impl Send for SkillDir
impl Sync for SkillDir
impl Unpin for SkillDir
impl UnsafeUnpin for SkillDir
impl UnwindSafe for SkillDir
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