pub struct Settings<'a> {Show 27 fields
pub checks: &'a [Vec<String>],
pub allow: &'a [Vec<String>],
pub allow_prefix: &'a [Vec<String>],
pub max_turns: u32,
pub max_tool_calls: u32,
pub reasoning: bool,
pub frozen: &'a [String],
pub approved: &'a [Object],
pub rejected: &'a [Rejection],
pub run_approved: &'a [Object],
pub approved_once: &'a [Object],
pub nudges: &'a [String],
pub mcp: &'a [McpTool],
pub root: &'a str,
pub frozen_additions: bool,
pub asks: &'a str,
pub wait_secs: u64,
pub network_allow: &'a [Vec<String>],
pub network_allow_prefix: &'a [Vec<String>],
pub run_id: &'a str,
pub asked: u32,
pub budget: u32,
pub prompts: bool,
pub in_place: bool,
pub hidden: &'a [String],
pub autopilot: bool,
pub planning: Option<&'a str>,
}Expand description
What an attempt decides by, besides its bundle (all journaled).
Fields§
§checks: &'a [Vec<String>]Configured checks’ argvs (their prefixes are allowed commands).
allow: &'a [Vec<String>]Exact commands allowed ([commands] allow).
allow_prefix: &'a [Vec<String>]Allowed command prefixes ([commands] allow_prefix).
max_turns: u32Model turns.
max_tool_calls: u32Tool calls.
reasoning: boolAsk for the model’s reasoning summary on every turn.
frozen: &'a [String]Test files frozen for this attempt.
approved: &'a [Object]A person’s approvals for this task, in this run.
rejected: &'a [Rejection]A person’s rejections for this task.
run_approved: &'a [Object]Objects a person approved for every task of this run.
approved_once: &'a [Object]Objects a person approved for one call each (a call a lane stopped, decided in its run’s batch): this attempt may make each one time.
nudges: &'a [String]A person’s notes for this task (nudge).
mcp: &'a [McpTool]The project’s MCP tools for this run.
root: &'a strThe worktree’s absolute (canonical) path.
frozen_additions: boolFrozen tests may gain lines without approval ([tests] frozen).
asks: &'a strHow a call needing a person is handled: "tasks" (the attempt waits
on a human task) or "stop" (it ends needs_approval; lanes).
wait_secs: u64How long a call waits for a person before it is denied as expired.
network_allow: &'a [Vec<String>]Exact commands that get the network ([sandbox] network_allow).
network_allow_prefix: &'a [Vec<String>]Prefixes that get it ([sandbox] network_allow_prefix).
run_id: &'a strThe run the attempt belongs to.
asked: u32Prompts the run has shown a person so far.
budget: u32[approvals] budget.
prompts: boolA person is prompted inline (not --no-prompt).
in_place: boolAn in-place attempt: git that moves the checkout is denied.
In place: what git ignored at the run’s start, hidden from the tools.
autopilot: boolAn autopilot run: a call that would ask is refused instead.
planning: Option<&'a str>A planning task: its unit’s directory (worktree-relative), whose
design documents it writes (Policy::planning).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Settings<'a>
impl<'a> RefUnwindSafe for Settings<'a>
impl<'a> Send for Settings<'a>
impl<'a> Sync for Settings<'a>
impl<'a> Unpin for Settings<'a>
impl<'a> UnsafeUnpin for Settings<'a>
impl<'a> UnwindSafe for Settings<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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