[][src]Enum ibuilder::Input

pub enum Input {
    Text(String),
    Choice(String),
}

An input of the user to the Builder.

Variants

Text(String)

The user inserted some raw textual content. Can be used only if the text_input field of the last Options was set to true.

Choice(String)

The user selected one of the multiple choices in the Options. The value should be one of the choice_id inside the list of Choices of the last Options.

Methods

impl Input[src]

pub fn text<S: Into<String>>(text: S) -> Input[src]

The user inserted some raw textual content. Can be used only if the text_input field of the last Options was set to true.

pub fn choice<S: Into<String>>(choice: S) -> Input[src]

The user selected one of the multiple choices in the Options. The value should be one of the choice_id inside the list of Choices of the last Options.

Trait Implementations

impl Debug for Input[src]

impl Eq for Input[src]

impl PartialEq<Input> for Input[src]

impl StructuralEq for Input[src]

impl StructuralPartialEq for Input[src]

Auto Trait Implementations

impl RefUnwindSafe for Input

impl Send for Input

impl Sync for Input

impl Unpin for Input

impl UnwindSafe for Input

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.