pub struct ScriptCallback {
pub path: PathBuf,
pub working_dir: Option<PathBuf>,
}Expand description
A callback that executes an external script (shell or Python).
Fields§
§path: PathBufPath to the script (.sh, .py, or any executable).
working_dir: Option<PathBuf>Working directory for script execution.
Implementations§
Trait Implementations§
Source§impl Clone for ScriptCallback
impl Clone for ScriptCallback
Source§fn clone(&self) -> ScriptCallback
fn clone(&self) -> ScriptCallback
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 ScriptCallback
impl RefUnwindSafe for ScriptCallback
impl Send for ScriptCallback
impl Sync for ScriptCallback
impl Unpin for ScriptCallback
impl UnsafeUnpin for ScriptCallback
impl UnwindSafe for ScriptCallback
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