[−][src]Struct telegram_bot_raw::requests::send_poll::SendPoll
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]
C: ToChatRef,
Q: Into<Cow<'q, str>>,
O: Into<Cow<'o, str>>,
pub fn add_option<O>(&mut self, option: O) -> &mut Self where
O: Into<Cow<'o, str>>,
[src]
O: Into<Cow<'o, str>>,
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]
E: Into<Cow<'e, str>>,
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]
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Self where
R: Into<ReplyMarkup>,
[src]
R: Into<ReplyMarkup>,
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]
fn eq(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
fn ne(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
impl<'q, 'o, 'e> PartialOrd<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>
[src]
fn partial_cmp(&self, other: &SendPoll<'q, 'o, 'e>) -> Option<Ordering>
[src]
fn lt(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
fn le(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
fn gt(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
fn ge(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>
[src]
type Type = JsonRequestType<Self>
type Response = JsonIdResponse<MessageOrChannelPost>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'q, 'o, 'e> Serialize for SendPoll<'q, 'o, 'e>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,