pub struct Script {
pub inline: Option<String>,
pub file: Option<PathBuf>,
}
Expand description
A Script represents something that can be executed oa a remote host.
These come in two variants:
- Inline string of shell commands to run
- A script or binary file to transfer and execute
Fields§
§inline: Option<String>
Inline scripts will have parameters rendered into then with handlebars syntax
file: Option<PathBuf>
File scripts will be executed with the parameters passed as command line arguments, e.g. the “msg” parameter would be passed as: ./file –msg=value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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