pub struct Rules {
pub intent: &'static [&'static str],
pub intent_reason: &'static str,
pub authoring_path: fn(&str) -> bool,
pub command: CommandRule,
pub env: &'static [(&'static str, &'static str)],
pub found_env: FoundEnv,
pub authoring_refusal: fn(&str) -> String,
pub judged: fn(&str) -> bool,
pub plan: &'static str,
}Expand description
Which paths are the format’s intent, and what a hosted planning skill may touch.
Fields§
§intent: &'static [&'static str]Globs of the intent: never written during implementation.
intent_reason: &'static strWhy an intent write is refused.
What a planning skill writes without asking.
command: CommandRuleThe format’s own commands: Some(Ok) runs without asking,
Some(Err(why)) is refused, None is classified like any command.
The flag is whether a hosted planning skill asks.
env: &'static [(&'static str, &'static str)]Environment variables every command of the project gets.
found_env: FoundEnvVariables found on this machine every command of the project gets, given a lookup of the command’s environment; a variable already in it (the person’s) is kept.
Why a planning skill’s other write needs approval (path given).
judged: fn(&str) -> boolThe unit’s judged files, relative to its directory (no trailing
/): what a planning task never writes — the requirements, the task
list, the person’s review.
plan: &'static strThe unit’s plan, relative to its directory: with the judged files, what its ticks were judged against (other design documents are not).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Rules
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more