pub struct Argument {
pub optional: bool,
pub repeat: bool,
pub default: Option<String>,
pub arg_type: Option<String>,
pub help_ref: Option<String>,
pub prompt: Option<String>,
}
Expand description
An argument for a bofhd command.
Fields§
§optional: bool
Whether this argument is optional or required.
repeat: bool
Whether this argument can be repeated.
default: Option<String>
The default value for this argument.
arg_type: Option<String>
The argument type.
help_ref: Option<String>
The help reference that should be used for this argument, if the client requests help.
prompt: Option<String>
The prompt that should be used for this argument, if it’s not supplied.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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