Struct frankenstein::api_params::SendPollParams [−][src]
pub struct SendPollParams {Show 17 fields
pub chat_id: ChatId,
pub question: String,
pub options: Vec<String>,
pub is_anonymous: Option<bool>,
pub type_field: Option<PollType>,
pub allows_multiple_answers: Option<bool>,
pub correct_option_id: Option<u8>,
pub explanation: Option<String>,
pub explanation_parse_mode: Option<String>,
pub explanation_entities: Option<Vec<MessageEntity>>,
pub open_period: Option<u32>,
pub close_date: Option<u64>,
pub is_closed: Option<bool>,
pub disable_notification: Option<bool>,
pub reply_to_message_id: Option<i32>,
pub allow_sending_without_reply: Option<bool>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields
chat_id: ChatId
question: String
options: Vec<String>
is_anonymous: Option<bool>
type_field: Option<PollType>
allows_multiple_answers: Option<bool>
correct_option_id: Option<u8>
explanation: Option<String>
explanation_parse_mode: Option<String>
explanation_entities: Option<Vec<MessageEntity>>
open_period: Option<u32>
close_date: Option<u64>
is_closed: Option<bool>
disable_notification: Option<bool>
reply_to_message_id: Option<i32>
allow_sending_without_reply: Option<bool>
reply_markup: Option<ReplyMarkup>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SendPollParams
impl Send for SendPollParams
impl Sync for SendPollParams
impl Unpin for SendPollParams
impl UnwindSafe for SendPollParams
Blanket Implementations
Mutably borrows from an owned value. Read more