[][src]Struct rtdlib::types::Poll

pub struct Poll { /* fields omitted */ }

Describes a poll

Implementations

impl Poll[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDPollBuilder[src]

pub fn id(&self) -> &String[src]

pub fn question(&self) -> &String[src]

pub fn options(&self) -> &Vec<PollOption>[src]

pub fn total_voter_count(&self) -> i64[src]

pub fn recent_voter_user_ids(&self) -> &Vec<i64>[src]

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

pub fn type_(&self) -> &PollType[src]

pub fn open_period(&self) -> i64[src]

pub fn close_date(&self) -> i64[src]

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

Trait Implementations

impl AsRef<Poll> for Poll[src]

impl Clone for Poll[src]

impl Debug for Poll[src]

impl Default for Poll[src]

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

impl RObject for Poll[src]

impl Serialize for Poll[src]

Auto Trait Implementations

impl RefUnwindSafe for Poll

impl Send for Poll

impl Sync for Poll

impl Unpin for Poll

impl UnwindSafe for Poll

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

impl<T> From<T> 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.