Struct tg_botapi::types::Poll [−][src]
pub struct Poll {Show 13 fields
pub id: String,
pub question: String,
pub options: Vec<PollOption>,
pub total_voter_count: i64,
pub is_closed: bool,
pub is_anonymous: bool,
pub poll_type: String,
pub allow_multiple_answers: bool,
pub correct_option_id: Option<i64>,
pub explanation: Option<String>,
pub explanation_entities: Option<Vec<MessageEntity>>,
pub open_period: Option<i64>,
pub close_date: Option<i64>,
}
Fields
id: String
question: String
options: Vec<PollOption>
total_voter_count: i64
is_closed: bool
is_anonymous: bool
poll_type: String
allow_multiple_answers: bool
correct_option_id: Option<i64>
explanation: Option<String>
explanation_entities: Option<Vec<MessageEntity>>
open_period: Option<i64>
close_date: Option<i64>
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
Auto Trait Implementations
impl RefUnwindSafe for Poll
impl UnwindSafe for Poll
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more