pub struct Poll {Show 13 fields
pub id: String,
pub question: String,
pub options: Vec<PollOption>,
pub total_voter_count: i32,
pub is_closed: bool,
pub is_anonymous: bool,
pub typ: String,
pub allows_multiple_answers: bool,
pub correct_option_id: Option<i32>,
pub explanation: Option<String>,
pub explanation_entities: Option<Vec<MessageEntity>>,
pub open_period: Option<i32>,
pub close_date: Option<i32>,
}
Fields§
§id: String
§question: String
§options: Vec<PollOption>
§total_voter_count: i32
§is_closed: bool
§is_anonymous: bool
§typ: String
§allows_multiple_answers: bool
§correct_option_id: Option<i32>
§explanation: Option<String>
§explanation_entities: Option<Vec<MessageEntity>>
§open_period: Option<i32>
§close_date: Option<i32>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Poll
impl RefUnwindSafe for Poll
impl Send for Poll
impl Sync for Poll
impl Unpin for Poll
impl UnwindSafe for Poll
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.