pub struct PollTypeQuiz { /* private fields */ }
Expand description
A poll in quiz mode, which has exactly one correct answer option and can be answered only once
Implementations§
Source§impl PollTypeQuiz
impl PollTypeQuiz
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PollTypeQuizBuilder
pub fn correct_option_id(&self) -> i32
pub fn explanation(&self) -> &FormattedText
Trait Implementations§
Source§impl AsRef<PollTypeQuiz> for PollTypeQuiz
impl AsRef<PollTypeQuiz> for PollTypeQuiz
Source§fn as_ref(&self) -> &PollTypeQuiz
fn as_ref(&self) -> &PollTypeQuiz
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PollTypeQuiz
impl Clone for PollTypeQuiz
Source§fn clone(&self) -> PollTypeQuiz
fn clone(&self) -> PollTypeQuiz
Returns a copy 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 Serialize for PollTypeQuiz
impl Serialize for PollTypeQuiz
impl TDPollType 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