[][src]Struct ibuilder::Choice

pub struct Choice {
    pub choice_id: String,
    pub text: String,
    pub needs_action: bool,
}

A single choice that the user can select.

Fields

choice_id: String

Identifier of the choice, may not be shown to the user. Its value has to be used as the value in Input::Choice.

text: String

Textual message to show to the user about this choice.

needs_action: bool

This choice probably needs to be selected sooner or later because there is a field inside that is missing.

Trait Implementations

impl Debug for Choice[src]

impl Eq for Choice[src]

impl PartialEq<Choice> for Choice[src]

impl StructuralEq for Choice[src]

impl StructuralPartialEq for Choice[src]

Auto Trait Implementations

impl RefUnwindSafe for Choice

impl Send for Choice

impl Sync for Choice

impl Unpin for Choice

impl UnwindSafe for Choice

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.