[][src]Enum tbot::types::parameters::poll::Answer

pub enum Answer {
    Single,
    Multiple,
}

Configures whether multiple answers are allowed in a poll.

Variants

Single

Only a single answer is allowed.

Multiple

Multiple answers are allowed.

Implementations

impl Answer[src]

pub fn is_single(&self) -> bool[src]

Returns true if self is of variant Single.

pub fn is_multiple(&self) -> bool[src]

Returns true if self is of variant Multiple.

Trait Implementations

impl Clone for Answer[src]

impl Copy for Answer[src]

impl Debug for Answer[src]

impl Eq for Answer[src]

impl Hash for Answer[src]

impl PartialEq<Answer> for Answer[src]

impl Serialize for Answer[src]

impl StructuralEq for Answer[src]

impl StructuralPartialEq for Answer[src]

Auto Trait Implementations

impl RefUnwindSafe for Answer

impl Send for Answer

impl Sync for Answer

impl Unpin for Answer

impl UnwindSafe for Answer

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> WithSubscriber for T[src]