pub enum Answer {
Noul(NoulAnswer),
Choice(ChoiceAnswer),
Score(ScoreAnswer),
Other {
type: String,
raw: Value,
},
}Expand description
One answered question.
Deserialization dispatches on the wire type field. A type this SDK version
does not recognize becomes Answer::Other instead of failing the whole
response, so a new server-side primitive never breaks existing callers using the
dynamic path (typed callers see Error::AnswerType if a field expects a known
primitive and gets Other).
Variants§
Noul(NoulAnswer)
Answer to a noul question.
Choice(ChoiceAnswer)
Answer to a choice question.
Score(ScoreAnswer)
Answer to a score question.
Other
A primitive this SDK version does not know about.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Answer
impl<'de> Deserialize<'de> for Answer
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
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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