pub struct Tool {
pub alias: String,
pub path: PathBuf,
pub interpreter: bool,
}Expand description
One tool the cell may be lent.
Fields§
§alias: StringThe name the agent uses, e.g. /usr/bin/python. A naming convenience:
authority comes from the content hash, never from this path.
path: PathBufWhere the bytes come from on this host.
interpreter: boolTrue for interpreters (python, sh, node…). An interpreter fed input the
agent wrote is moved to the agent lane for that invocation — the
laundering ban. Getting this wrong is the most consequential mistake
available in this file, which is why celln spec check guesses at it and
warns when your answer disagrees.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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