pub struct AnswerResult {
pub is_correct: bool,
pub correct_index: u8,
pub explanation: String,
pub reference: Option<String>,
}Expand description
Result of answering a question.
Fields§
§is_correct: bool§correct_index: u8§explanation: String§reference: Option<String>Trait Implementations§
Source§impl Clone for AnswerResult
impl Clone for AnswerResult
Source§fn clone(&self) -> AnswerResult
fn clone(&self) -> AnswerResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnswerResult
impl Debug for AnswerResult
Source§impl<'de> Deserialize<'de> for AnswerResult
impl<'de> Deserialize<'de> for AnswerResult
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
Auto Trait Implementations§
impl Freeze for AnswerResult
impl RefUnwindSafe for AnswerResult
impl Send for AnswerResult
impl Sync for AnswerResult
impl Unpin for AnswerResult
impl UnsafeUnpin for AnswerResult
impl UnwindSafe for AnswerResult
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