pub struct ListItem {
pub index: usize,
pub text: String,
}Expand description
A representation of a Choice at a particular index.
It will be returned by select and raw_select.
Fields§
§index: usizeThe index of the choice
text: StringThe content of the choice – it is what was displayed to the user
Trait Implementations§
Source§impl From<OrderSelectItem> for ListItem
impl From<OrderSelectItem> for ListItem
Source§fn from(o: OrderSelectItem) -> Self
fn from(o: OrderSelectItem) -> Self
Converts to this type from the input type.
Source§impl Ord for ListItem
impl Ord for ListItem
Source§impl PartialOrd for ListItem
impl PartialOrd for ListItem
impl Eq for ListItem
impl StructuralPartialEq for ListItem
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnwindSafe for ListItem
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