pub struct Choice {
pub name: String,
pub description: String,
/* private fields */
}
Expand description
§Choice
represents a choice in a menu that the user can select provides a name, description, execute function and a matches_if function the matches_if function is used to determine if the choice matches the args the execute function is executed if the choice matches the args
Fields§
§name: String
§description: String
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Choice
impl !RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl !UnwindSafe for Choice
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