pub struct TGPoll {Show 13 fields
pub id: String,
pub question: String,
pub options: Vec<TGPollOption>,
pub total_voter_count: i64,
pub is_closed: bool,
pub is_anonymous: bool,
pub type: String,
pub allows_multiple_answers: bool,
pub correct_option_id: Option<i64>,
pub explanation: Option<String>,
pub explanation_entities: Option<Vec<TGMessageEntity>>,
pub open_period: Option<i64>,
pub close_date: Option<i64>,
}Fields§
§id: String§question: String§options: Vec<TGPollOption>§total_voter_count: i64§is_closed: bool§is_anonymous: bool§type: String§allows_multiple_answers: bool§correct_option_id: Option<i64>§explanation: Option<String>§explanation_entities: Option<Vec<TGMessageEntity>>§open_period: Option<i64>§close_date: Option<i64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TGPoll
impl<'de> Deserialize<'de> for TGPoll
Source§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 Freeze for TGPoll
impl RefUnwindSafe for TGPoll
impl Send for TGPoll
impl Sync for TGPoll
impl Unpin for TGPoll
impl UnwindSafe for TGPoll
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more