[][src]Struct telegram_bot::types::requests::SendPoll

#[must_use = "requests do nothing unless sent"]pub struct SendPoll<'q, 'o, 'e> { /* fields omitted */ }

Use this method to send polls.

Implementations

impl<'q, 'o, 'e> SendPoll<'q, 'o, 'e>[src]

pub fn new<C, Q, O>(
    chat: C,
    question: Q,
    options: Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
    C: ToChatRef,
    O: Into<Cow<'o, str>>,
    Q: Into<Cow<'q, str>>, 
[src]

pub fn add_option<O>(&mut self, option: O) -> &mut SendPoll<'q, 'o, 'e> where
    O: Into<Cow<'o, str>>, 
[src]

pub fn not_anonymous(&mut self) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn quiz(&mut self) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn regular(&mut self) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn allows_multiple_answers(&mut self) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn correct_option_id(&mut self, id: i64) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn explanation<E>(&mut self, text: E) -> &mut SendPoll<'q, 'o, 'e> where
    E: Into<Cow<'e, str>>, 
[src]

pub fn explanation_parse_mode(
    &mut self,
    parse_mode: ParseMode
) -> &mut SendPoll<'q, 'o, 'e>
[src]

pub fn open_period(&mut self, period: i64) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn close_date(&mut self, date: i64) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn closed(&mut self) -> &mut SendPoll<'q, 'o, 'e>[src]

pub fn reply_to<R>(&mut self, to: R) -> &mut SendPoll<'q, 'o, 'e> where
    R: ToMessageId
[src]

pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendPoll<'q, 'o, 'e> where
    R: Into<ReplyMarkup>, 
[src]

Trait Implementations

impl<'q, 'o, 'e> Clone for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> Debug for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> PartialEq<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> PartialOrd<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> Serialize for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> StructuralPartialEq for SendPoll<'q, 'o, 'e>[src]

Auto Trait Implementations

impl<'q, 'o, 'e> RefUnwindSafe for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> Send for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> Sync for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> Unpin for SendPoll<'q, 'o, 'e>[src]

impl<'q, 'o, 'e> UnwindSafe for SendPoll<'q, 'o, 'e>[src]

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]