pub struct SendPoll<'q, 'o, 'e> { /* private fields */ }
Expand description
Use this method to send polls.
Implementations§
Source§impl<'q, 'o, 'e> SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> SendPoll<'q, 'o, 'e>
pub fn new<C, Q, O>( chat: C, question: Q, options: Vec<O>, ) -> SendPoll<'q, 'o, 'e>
pub fn add_option<O>(&mut self, option: O) -> &mut SendPoll<'q, 'o, 'e>
pub fn not_anonymous(&mut self) -> &mut SendPoll<'q, 'o, 'e>
pub fn quiz(&mut self) -> &mut SendPoll<'q, 'o, 'e>
pub fn regular(&mut self) -> &mut SendPoll<'q, 'o, 'e>
pub fn allows_multiple_answers(&mut self) -> &mut SendPoll<'q, 'o, 'e>
pub fn correct_option_id(&mut self, id: i64) -> &mut SendPoll<'q, 'o, 'e>
pub fn explanation<E>(&mut self, text: E) -> &mut SendPoll<'q, 'o, 'e>
pub fn explanation_parse_mode( &mut self, parse_mode: ParseMode, ) -> &mut SendPoll<'q, 'o, 'e>
pub fn open_period(&mut self, period: i64) -> &mut SendPoll<'q, 'o, 'e>
pub fn close_date(&mut self, date: i64) -> &mut SendPoll<'q, 'o, 'e>
pub fn closed(&mut self) -> &mut SendPoll<'q, 'o, 'e>
pub fn reply_to<R>(&mut self, to: R) -> &mut SendPoll<'q, 'o, 'e>where
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendPoll<'q, 'o, 'e>where
R: Into<ReplyMarkup>,
Trait Implementations§
Source§impl<'q, 'o, 'e> PartialOrd for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> PartialOrd for SendPoll<'q, 'o, 'e>
Source§impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>
type Type = JsonRequestType<SendPoll<'q, 'o, 'e>>
type Response = JsonIdResponse<MessageOrChannelPost>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl<'q, 'o, 'e> Serialize for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> Serialize for SendPoll<'q, 'o, 'e>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'q, 'o, 'e> StructuralPartialEq for SendPoll<'q, 'o, 'e>
Auto Trait Implementations§
impl<'q, 'o, 'e> Freeze for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> RefUnwindSafe for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> Send for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> Sync for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> Unpin for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> UnwindSafe for SendPoll<'q, 'o, 'e>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more