pub struct Setup {Show 14 fields
pub root: PathBuf,
pub tools: WorkspaceTools,
pub policy: Policy,
pub approver: Option<Arc<dyn Approver>>,
pub present: PresentContext,
pub task: String,
pub task_title: String,
pub run: Option<String>,
pub frozen_additions: bool,
pub run_approved: Vec<Object>,
pub approved_once: Vec<Object>,
pub progress: Option<(String, Arc<dyn Progress>)>,
pub copied: Vec<String>,
pub agent: String,
}Expand description
What a Governor is built from.
Fields§
§root: PathBufThe worktree (canonical).
tools: WorkspaceToolsThe attempt’s tools (with the sandboxed runner).
policy: PolicyThe attempt’s policy, with the task’s decisions.
approver: Option<Arc<dyn Approver>>Who answers a call that needs a person; None with --no-prompt.
present: PresentContextWhat a person is shown about the sandbox.
task: Stringfeature/task.
task_title: StringThe task’s title.
run: Option<String>The run.
frozen_additions: bool[tests] frozen = "additions".
run_approved: Vec<Object>Objects approved for every task of this run.
approved_once: Vec<Object>Objects approved for one call each.
progress: Option<(String, Arc<dyn Progress>)>The task id and where its events go.
copied: Vec<String>Files copied from the checkout ([worktree] include),
worktree-relative.
agent: StringThe agent (its preset id, or acp).
Auto Trait Implementations§
impl !RefUnwindSafe for Setup
impl !UnwindSafe for Setup
impl Freeze for Setup
impl Send for Setup
impl Sync for Setup
impl Unpin for Setup
impl UnsafeUnpin for Setup
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
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Creates a shared type from an unshared type.