pub struct Command {
pub fullname: String,
pub name: String,
pub args: Vec<Argument>,
pub format_suggestion: Option<String>,
pub help: Option<String>,
}
Expand description
A bofhd command.
Fields§
§fullname: String
The actual, full bofhd command name, which can be supplied to Bofh::run_command
.
name: String
The name of this subcommand.
args: Vec<Argument>
Valid arguments to this command.
format_suggestion: Option<String>
Output format suggestion for clients.
help: Option<String>
Help text for command, supplied by the server.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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