Struct tbot::types::poll::Answer[][src]

pub struct Answer {
    pub poll_id: String,
    pub user: User,
    pub option_ids: Vec<usize>,

Represents a PollAnswer.


poll_id: String

The ID of the poll.

user: User

The user who voted.

option_ids: Vec<usize>

The index of options choosen by user.

Trait Implementations

impl Clone for Answer[src]

impl Debug for Answer[src]

impl<'de> Deserialize<'de> for Answer[src]

impl Hash for Answer[src]

impl PartialEq<Answer> for Answer[src]

impl Eq 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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>,