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

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

Represents a PollAnswer.

Fields

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
[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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]