pub struct Script {
pub help_string: String,
pub path: String,
pub should_source: bool,
pub should_complete: bool,
pub summary_string: String,
}Expand description
Any executable script can be added to be executed, but It’s possible to add metadata to the script via comments as well.
Fields§
§help_string: String§path: Stringthe string that should be used for usage information the path the script is located at.
should_source: booldetermines if the script should be sourced or not.
should_complete: booldetermines if the script should have completion invoked or not.
summary_string: Stringthe string that should be printed when help is requested.
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 UnsafeUnpin 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