pub struct CommandParam {
pub name: String,
pub required: bool,
pub rest: bool,
}Expand description
A parameter of a CommandInfo.
Fields§
§name: StringIts name.
required: boolMust be given.
rest: boolMay contain spaces (the rest of the line).
Trait Implementations§
Source§impl Clone for CommandParam
impl Clone for CommandParam
Source§impl Debug for CommandParam
impl Debug for CommandParam
impl Eq for CommandParam
Source§impl PartialEq for CommandParam
impl PartialEq for CommandParam
impl StructuralPartialEq for CommandParam
Auto Trait Implementations§
impl Freeze for CommandParam
impl RefUnwindSafe for CommandParam
impl Send for CommandParam
impl Sync for CommandParam
impl Unpin for CommandParam
impl UnsafeUnpin for CommandParam
impl UnwindSafe for CommandParam
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