[−][src]Enum ibuilder::Input
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 Choice
s 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 Choice
s 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,