pub struct SpawnOpts {
pub prompt: String,
pub cwd: PathBuf,
pub model: Option<String>,
pub allowed_tools: Vec<String>,
pub session: Option<Session>,
pub extra_args: Vec<String>,
pub bin: Option<PathBuf>,
}Expand description
Arguments used to build a claude -p invocation.
Fields§
§prompt: StringPositional prompt argument passed last to claude -p.
cwd: PathBufWorking directory for the child process. Unit 11 sets this to the per-run worktree.
model: Option<String>Optional --model <id>. Omitted when None.
allowed_tools: Vec<String>Comma-joined into --allowed-tools. Empty when the node places
no restriction.
session: Option<Session>Loop session flag (Unit 11); None for one-shot nodes.
extra_args: Vec<String>Escape hatch for per-distro flags (e.g. --bare,
--dangerously-skip-permissions). Appended verbatim before the
prompt.
bin: Option<PathBuf>Override binary path. Defaults to DEFAULT_BIN on PATH.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpawnOpts
impl RefUnwindSafe for SpawnOpts
impl Send for SpawnOpts
impl Sync for SpawnOpts
impl Unpin for SpawnOpts
impl UnsafeUnpin for SpawnOpts
impl UnwindSafe for SpawnOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more