pub enum AnswerInJson {
ErrorTrue {
error: bool,
too_many: Vec<String>,
},
ErrorFalse {
error: bool,
score: i32,
hands: Vec<String>,
},
}
Variants§
Trait Implementations§
source§impl Clone for AnswerInJson
impl Clone for AnswerInJson
source§fn clone(&self) -> AnswerInJson
fn clone(&self) -> AnswerInJson
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 AnswerInJson
impl Debug for AnswerInJson
source§impl<'de> Deserialize<'de> for AnswerInJson
impl<'de> Deserialize<'de> for AnswerInJson
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<AnswerInJson> for AnswerInJson
impl PartialEq<AnswerInJson> for AnswerInJson
source§fn eq(&self, other: &AnswerInJson) -> bool
fn eq(&self, other: &AnswerInJson) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AnswerInJson
impl Serialize for AnswerInJson
source§impl TryFrom<AnswerInJson> for ScoreAndHands
impl TryFrom<AnswerInJson> for ScoreAndHands
source§fn try_from(s: AnswerInJson) -> Result<ScoreAndHands, TooMany>
fn try_from(s: AnswerInJson) -> Result<ScoreAndHands, TooMany>
Performs the conversion.