[−][src]Struct telegram_bot::types::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, Global>
) -> SendPoll<'q, 'o, 'e> where
C: ToChatRef,
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
[src]
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>>,
pub fn add_option<O>(&mut self, option: O) -> &mut SendPoll<'q, 'o, 'e> where
O: Into<Cow<'o, str>>,
[src]
O: Into<Cow<'o, str>>,
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]
E: Into<Cow<'e, str>>,
pub fn explanation_parse_mode(
&mut self,
parse_mode: ParseMode
) -> &mut SendPoll<'q, 'o, 'e>
[src]
&mut self,
parse_mode: ParseMode
) -> &mut SendPoll<'q, 'o, 'e>
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]
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendPoll<'q, 'o, 'e> where
R: Into<ReplyMarkup>,
[src]
R: Into<ReplyMarkup>,
Trait Implementations
impl<'q, 'o, 'e> Clone for SendPoll<'q, 'o, 'e>
[src]
pub fn clone(&self) -> SendPoll<'q, 'o, 'e>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
pub fn eq(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
pub 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]
pub fn partial_cmp(&self, other: &SendPoll<'q, 'o, 'e>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
pub fn le(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
pub fn gt(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
pub fn ge(&self, other: &SendPoll<'q, 'o, 'e>) -> bool
[src]
impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>
[src]
type Type = JsonRequestType<SendPoll<'q, 'o, 'e>>
type Response = JsonIdResponse<MessageOrChannelPost>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
pub fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'q, 'o, 'e> Serialize for SendPoll<'q, 'o, 'e>
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,