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 authoring_refusal: fn(&str) -> String,
}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.
Why a planning skill’s other write needs approval (path given).
Trait Implementations§
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more