Trait SendPollSetters

Source
pub trait SendPollSetters: HasPayload<Payload = SendPoll> + Sized {
Show 18 methods // Provided methods fn chat_id<T>(self, value: T) -> Self where T: Into<Recipient> { ... } fn question<T>(self, value: T) -> Self where T: Into<String> { ... } fn options<T>(self, value: T) -> Self where T: IntoIterator<Item = String> { ... } fn message_thread_id(self, value: ThreadId) -> Self { ... } fn is_anonymous(self, value: bool) -> Self { ... } fn type_(self, value: PollType) -> Self { ... } fn allows_multiple_answers(self, value: bool) -> Self { ... } fn correct_option_id(self, value: u8) -> Self { ... } fn explanation<T>(self, value: T) -> Self where T: Into<String> { ... } fn explanation_parse_mode(self, value: ParseMode) -> Self { ... } fn explanation_entities<T>(self, value: T) -> Self where T: IntoIterator<Item = MessageEntity> { ... } fn open_period(self, value: u16) -> Self { ... } fn close_date<T>(self, value: T) -> Self where T: Into<DateTime<Utc>> { ... } fn is_closed(self, value: bool) -> Self { ... } fn disable_notification(self, value: bool) -> Self { ... } fn protect_content(self, value: bool) -> Self { ... } fn reply_parameters(self, value: ReplyParameters) -> Self { ... } fn reply_markup<T>(self, value: T) -> Self where T: Into<ReplyMarkup> { ... }
}
Expand description

Setters for fields of SendPoll

Provided Methods§

Source

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.

Source

fn question<T>(self, value: T) -> Self
where T: Into<String>,

Setter for question field.

Source

fn options<T>(self, value: T) -> Self
where T: IntoIterator<Item = String>,

Setter for options field.

Source

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.

Source

fn is_anonymous(self, value: bool) -> Self

Setter for is_anonymous field.

Source

fn type_(self, value: PollType) -> Self

Setter for type_ field.

Source

fn allows_multiple_answers(self, value: bool) -> Self

Setter for allows_multiple_answers field.

Source

fn correct_option_id(self, value: u8) -> Self

Setter for correct_option_id field.

Source

fn explanation<T>(self, value: T) -> Self
where T: Into<String>,

Setter for explanation field.

Source

fn explanation_parse_mode(self, value: ParseMode) -> Self

Setter for explanation_parse_mode field.

Source

fn explanation_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for explanation_entities field.

Source

fn open_period(self, value: u16) -> Self

Setter for open_period field.

Source

fn close_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for close_date field.

Source

fn is_closed(self, value: bool) -> Self

Setter for is_closed field.

Source

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.

Source

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.

Source

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.

Source

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> SendPollSetters for P
where P: HasPayload<Payload = SendPoll>,