pub struct Planning {
pub prefix: &'static str,
pub core: &'static [&'static str],
pub refused: fn(&str) -> Option<String>,
pub creates: &'static [&'static str],
pub current_env: Option<&'static str>,
pub toward_tasks: fn(bool) -> &'static [&'static str],
pub revises: Option<&'static str>,
}Expand description
Hosted planning skills.
Fields§
§prefix: &'static strThe prefix installed skills carry (plan runs <prefix>plan).
core: &'static [&'static str]Skills whose before_<name> / after_<name> hooks run.
refused: fn(&str) -> Option<String>Why a skill is not hosted, and what to use instead.
creates: &'static [&'static str]Core skills that create a new unit (Spec Kit: specify): they get
no current-unit variable, and the unit they create becomes current.
current_env: Option<&'static str>The variable the format’s own scripts read the current unit from
(Spec Kit: SPECIFY_FEATURE_DIRECTORY), passed to planning commands.
toward_tasks: fn(bool) -> &'static [&'static str]The skills that lead from what exists to a task list, given whether
a plan exists (Spec Kit: plan, tasks).
revises: Option<&'static str>The skill that revises a written spec from a person’s comments
(Spec Kit: clarify), if the format has one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Planning
impl RefUnwindSafe for Planning
impl Send for Planning
impl Sync for Planning
impl Unpin for Planning
impl UnsafeUnpin for Planning
impl UnwindSafe for Planning
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