pub struct ChoiceList {
pub category: &'static str,
pub options: Vec<ChoiceOption>,
pub selected: Option<usize>,
}Fields§
§category: &'static strThe schema’s category id, e.g. pacenotes_shared::CATEGORY_CODRIVER.
options: Vec<ChoiceOption>§selected: Option<usize>Implementations§
Source§impl ChoiceList
impl ChoiceList
pub fn selected_key(&self) -> Option<&str>
Sourcepub fn is_satisfied(&self) -> bool
pub fn is_satisfied(&self) -> bool
An empty list asks nothing, as a category the server does not offer must not block Install.
Trait Implementations§
Source§impl Clone for ChoiceList
impl Clone for ChoiceList
Source§fn clone(&self) -> ChoiceList
fn clone(&self) -> ChoiceList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChoiceList
impl Debug for ChoiceList
impl Eq for ChoiceList
Source§impl PartialEq for ChoiceList
impl PartialEq for ChoiceList
impl StructuralPartialEq for ChoiceList
Auto Trait Implementations§
impl Freeze for ChoiceList
impl RefUnwindSafe for ChoiceList
impl Send for ChoiceList
impl Sync for ChoiceList
impl Unpin for ChoiceList
impl UnsafeUnpin for ChoiceList
impl UnwindSafe for ChoiceList
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