pub struct ModuleCommand {
pub action: String,
pub args: Args,
/* private fields */
}Expand description
An action to run, with arguments already checked against the manifest. Dropping it without an answer tells the caller it failed.
Fields§
§action: StringThe action’s name, from the manifest.
args: ArgsIts arguments, parsed into the kinds the manifest declares: read
them with Args::str, Args::int, Args::float and
Args::bool. Optional ones that were left out are missing.
Implementations§
Trait Implementations§
Source§impl Debug for ModuleCommand
impl Debug for ModuleCommand
Source§impl Drop for ModuleCommand
impl Drop for ModuleCommand
Auto Trait Implementations§
impl Freeze for ModuleCommand
impl RefUnwindSafe for ModuleCommand
impl Send for ModuleCommand
impl Sync for ModuleCommand
impl Unpin for ModuleCommand
impl UnsafeUnpin for ModuleCommand
impl UnwindSafe for ModuleCommand
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