pub struct DirectPlace {
pub files_dir: String,
pub cwd: String,
pub permissions: PermissionRules,
pub sandbox: Vec<OsString>,
pub env: Vec<(String, String)>,
pub unset: Vec<String>,
}Expand description
Where a direct call runs, what its agent may do, and the sandbox around it
Fields§
§files_dir: StringWhere the prompt files go, kept out of cwd so a checkout gets nothing written to it
cwd: StringThe folder the agent works in
permissions: PermissionRules§sandbox: Vec<OsString>A sandbox-jail prefix for the command, empty to run without one
env: Vec<(String, String)>Extra environment for the agent
unset: Vec<String>Variables taken out of the daemon’s environment, such as tokens the agent must not see
Trait Implementations§
Source§impl Clone for DirectPlace
impl Clone for DirectPlace
Auto Trait Implementations§
impl Forget for DirectPlace
impl Freeze for DirectPlacewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for DirectPlace
impl RefUnwindSafe for DirectPlace
impl Send for DirectPlacewhere
RawVecInner: Send,
impl Sync for DirectPlacewhere
RawVecInner: Sync,
impl Unpin for DirectPlace
impl UnsafeUnpin for DirectPlacewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for DirectPlacewhere
RawVecInner: UnwindSafe,
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> 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> 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 more