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
sourceimpl 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
sourceimpl AsRef<PollTypeQuiz> for PollTypeQuiz
impl AsRef<PollTypeQuiz> for PollTypeQuiz
sourcefn as_ref(&self) -> &PollTypeQuiz
fn as_ref(&self) -> &PollTypeQuiz
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PollTypeQuiz
impl Clone for PollTypeQuiz
sourcefn clone(&self) -> PollTypeQuiz
fn clone(&self) -> PollTypeQuiz
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PollTypeQuiz
impl Debug for PollTypeQuiz
sourceimpl Default for PollTypeQuiz
impl Default for PollTypeQuiz
sourcefn default() -> PollTypeQuiz
fn default() -> PollTypeQuiz
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PollTypeQuiz
impl<'de> Deserialize<'de> for PollTypeQuiz
sourcefn 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
sourceimpl Serialize for PollTypeQuiz
impl Serialize for PollTypeQuiz
impl TDPollType for PollTypeQuiz
Auto Trait Implementations
impl RefUnwindSafe for PollTypeQuiz
impl Send for PollTypeQuiz
impl Sync for PollTypeQuiz
impl Unpin for PollTypeQuiz
impl UnwindSafe for PollTypeQuiz
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more