[][src]Struct telegram_bot_raw::requests::send_poll::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>) -> Self where
    C: ToChatRef,
    Q: Into<Cow<'q, str>>,
    O: Into<Cow<'o, str>>, 
[src]

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

pub fn not_anonymous(&mut self) -> &mut Self[src]

pub fn quiz(&mut self) -> &mut Self[src]

pub fn regular(&mut self) -> &mut Self[src]

pub fn allows_multiple_answers(&mut self) -> &mut Self[src]

pub fn correct_option_id(&mut self, id: Integer) -> &mut Self[src]

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

pub fn explanation_parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self[src]

pub fn open_period(&mut self, period: Integer) -> &mut Self[src]

pub fn close_date(&mut self, date: Integer) -> &mut Self[src]

pub fn closed(&mut self) -> &mut Self[src]

pub fn reply_to<R>(&mut self, to: R) -> &mut Self where
    R: ToMessageId
[src]

pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Self 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, 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.