Struct frankenstein::objects::Poll [−][src]
pub struct Poll {}Show fields
pub id: String, pub question: String, pub options: Vec<PollOption>, pub total_voter_count: u32, pub is_closed: bool, pub is_anonymous: bool, pub type_field: String, pub allows_multiple_answers: bool, pub correct_option_id: Option<u8>, pub explanation: Option<String>, pub explanation_entities: Option<Vec<MessageEntity>>, pub open_period: Option<u32>, pub close_date: Option<u64>,
Fields
id: String
question: String
options: Vec<PollOption>
total_voter_count: u32
is_closed: bool
is_anonymous: bool
type_field: String
allows_multiple_answers: bool
correct_option_id: Option<u8>
explanation: Option<String>
explanation_entities: Option<Vec<MessageEntity>>
open_period: Option<u32>
close_date: Option<u64>
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
Auto Trait Implementations
impl RefUnwindSafe for Poll
impl UnwindSafe for Poll
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
pub fn vzip(self) -> V
impl<T> UnsafeAny for T where
T: Any,