#[non_exhaustive]pub struct Target {
pub path: PathBuf,
pub dirs: Vec<String>,
pub tools: Vec<String>,
pub create: bool,
pub git_root: Option<PathBuf>,
}Expand description
One directory the skill would be written to.
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.path: PathBufThe physical directory, every symlink resolved. This is where the skill is written.
dirs: Vec<String>The catalog directories that lead here, in catalog order. More than one when a symlink joins them.
tools: Vec<String>The installed tools that read a skill here, in catalog order.
create: boolWhether the directory has to be created.
git_root: Option<PathBuf>The root of the git working tree it lies in, if any.
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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