pub struct Choice {
pub choice_id: String,
pub text: String,
pub needs_action: bool,
}Expand description
A single choice that the user can select.
Fields§
§choice_id: StringIdentifier of the choice, may not be shown to the user. Its value has to be used as the
value in Input::Choice.
text: StringTextual message to show to the user about this choice.
needs_action: boolThis choice probably needs to be selected sooner or later because there is a field inside that is missing.
Trait Implementations§
impl Eq for Choice
impl StructuralPartialEq for Choice
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