pub struct ScriptCheck<'a> {
pub task_id: &'a str,
pub script: &'a str,
pub interpreter: Interpreter,
pub shell: Option<Result<&'a ShellScript, &'a ShellParseError>>,
pub origin: ScriptOrigin,
pub sandbox: SandboxMode,
pub location: Option<&'a str>,
pub start: &'a ScriptDir,
pub call: Option<&'a CallIdentity>,
}Expand description
A script about to run, as a ScriptPolicy and the shell’s
TreatOutput see it.
Fields§
§task_id: &'a strThe id the script’s task gets when it runs; the ScriptEnd that
reports how it ended carries the same id.
script: &'a strThe script as written.
interpreter: InterpreterThe language it is written in.
shell: Option<Result<&'a ShellScript, &'a ShellParseError>>The script parsed as shell: None for a script in another language,
an error when it is not valid shell.
origin: ScriptOriginHow the script came to the terminal.
sandbox: SandboxModeWhether the script runs inside the sandbox.
location: Option<&'a str>The configured server the script runs on; None for the home
environment.
start: &'a ScriptDirThe directory the script starts in, fixed when the script was admitted: for a foreground script of the main agent the directory the shell carried from the previous one, for a run the directory it names, otherwise the terminal’s own directory. The launch starts in the same directory.
call: Option<&'a CallIdentity>The tool call that carries the script and the agent that made it, when the caller identified one.
Trait Implementations§
Source§impl<'a> Clone for ScriptCheck<'a>
impl<'a> Clone for ScriptCheck<'a>
impl<'a> Copy for ScriptCheck<'a>
Auto Trait Implementations§
impl<'a> Forget for ScriptCheck<'a>
impl<'a> Freeze for ScriptCheck<'a>
impl<'a> Move for ScriptCheck<'a>
impl<'a> RefUnwindSafe for ScriptCheck<'a>
impl<'a> Send for ScriptCheck<'a>
impl<'a> Sync for ScriptCheck<'a>
impl<'a> Unpin for ScriptCheck<'a>
impl<'a> UnsafeUnpin for ScriptCheck<'a>
impl<'a> UnwindSafe for ScriptCheck<'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