pub struct ChoiceItem {
pub id: String,
pub caption: String,
pub items: Vec<ChoiceItem>,
}Expand description
One option of a single-choice action, which can hold others.
Fields§
§id: StringWhat the handler receives.
caption: StringWhat people see.
items: Vec<ChoiceItem>The options under this one.
Implementations§
Trait Implementations§
Source§impl Clone for ChoiceItem
impl Clone for ChoiceItem
Source§fn clone(&self) -> ChoiceItem
fn clone(&self) -> ChoiceItem
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 ChoiceItem
impl Debug for ChoiceItem
impl Eq for ChoiceItem
Source§impl PartialEq for ChoiceItem
impl PartialEq for ChoiceItem
impl StructuralPartialEq for ChoiceItem
Auto Trait Implementations§
impl Freeze for ChoiceItem
impl RefUnwindSafe for ChoiceItem
impl Send for ChoiceItem
impl Sync for ChoiceItem
impl Unpin for ChoiceItem
impl UnsafeUnpin for ChoiceItem
impl UnwindSafe for ChoiceItem
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