Struct rust_tdlib::types::PollTypeQuiz
source · 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