#[non_exhaustive]pub enum ScriptTemplate {
Shell(String),
TypeScript(String),
}Expand description
Optional script body for harnesses that need a shell script or TS plugin.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shell(String)
POSIX shell script body. The library adds the shebang if absent and
chmods the file 0755. A SHA-256 sidecar is written for harnesses
(Gemini) that verify integrity.
TypeScript(String)
TypeScript plugin body for OpenCode / OpenClaw.
Trait Implementations§
Source§impl Clone for ScriptTemplate
impl Clone for ScriptTemplate
Source§fn clone(&self) -> ScriptTemplate
fn clone(&self) -> ScriptTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScriptTemplate
impl RefUnwindSafe for ScriptTemplate
impl Send for ScriptTemplate
impl Sync for ScriptTemplate
impl Unpin for ScriptTemplate
impl UnsafeUnpin for ScriptTemplate
impl UnwindSafe for ScriptTemplate
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