pub struct PollTypeQuiz {
pub correct_option_id: i32,
pub explanation: FormattedText,
}
Expand description
A poll in quiz mode, which has exactly one correct answer option and can be answered only once
Fields§
§correct_option_id: i32
0-based identifier of the correct answer option; -1 for a yet unanswered poll
explanation: FormattedText
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll
Trait Implementations§
Source§impl Clone for PollTypeQuiz
impl Clone for PollTypeQuiz
Source§fn clone(&self) -> PollTypeQuiz
fn clone(&self) -> PollTypeQuiz
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PollTypeQuiz
impl Debug for PollTypeQuiz
Source§impl Default for PollTypeQuiz
impl Default for PollTypeQuiz
Source§fn default() -> PollTypeQuiz
fn default() -> PollTypeQuiz
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PollTypeQuiz
impl<'de> Deserialize<'de> for PollTypeQuiz
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
Source§impl PartialEq for PollTypeQuiz
impl PartialEq for PollTypeQuiz
Source§impl Serialize for PollTypeQuiz
impl Serialize for PollTypeQuiz
impl StructuralPartialEq for PollTypeQuiz
Auto Trait Implementations§
impl Freeze for PollTypeQuiz
impl RefUnwindSafe for PollTypeQuiz
impl Send for PollTypeQuiz
impl Sync for PollTypeQuiz
impl Unpin for PollTypeQuiz
impl UnwindSafe for PollTypeQuiz
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