[][src]Struct tbot::types::parameters::poll::Quiz

pub struct Quiz<'a> { /* fields omitted */ }

Represents a quiz.

Implementations

impl<'a> Quiz<'a>[src]

#[must_use]pub const fn new(correct_option_id: usize) -> Self[src]

Constructs a new quiz.

pub fn explanation(self, explanation: impl Into<Text<'a>>) -> Self[src]

Sets the poll's explanation. Configures the explanation and explanation_parse_mode fields.

Trait Implementations

impl<'a> Clone for Quiz<'a>[src]

impl<'a> Copy for Quiz<'a>[src]

impl<'a> Debug for Quiz<'a>[src]

impl<'a> Eq for Quiz<'a>[src]

impl<'a> From<Quiz<'a>> for Kind<'a>[src]

impl<'a> Hash for Quiz<'a>[src]

impl<'a> PartialEq<Quiz<'a>> for Quiz<'a>[src]

impl<'a> Serialize for Quiz<'a>[src]

impl<'a> StructuralEq for Quiz<'a>[src]

impl<'a> StructuralPartialEq for Quiz<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Quiz<'a>

impl<'a> Send for Quiz<'a>

impl<'a> Sync for Quiz<'a>

impl<'a> Unpin for Quiz<'a>

impl<'a> UnwindSafe for Quiz<'a>

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, 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]