pub struct ShellScript {
pub interpreter: String,
pub comments: Vec<String>,
pub commands: Vec<String>,
}
Expand description
A very basic representation of a shell script. There is an interpreter, some comments and a list of commands
Fields§
§interpreter: String
the interpreter to use
comments: Vec<String>
Any comments here will be joined with newlines when written back out
commands: Vec<String>
Any commands here will be joined with newlines when written back out
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShellScript
impl RefUnwindSafe for ShellScript
impl Send for ShellScript
impl Sync for ShellScript
impl Unpin for ShellScript
impl UnwindSafe for ShellScript
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