I want to read two values from the input data stream within the deserialize function. How can I do this? I can't find anything about this in the documentation or anywhere else.
Any ideas? Best thanks!
pub fn deserialize<'de, D>(d: D) -> std::result::Result<f64, D::Error>
where
D: Deserializer<'de>,
{
let (s1, s2): (String, String) = Seq::deserialize(d)?;
// do something useful with the strings
}
I got this error message and found no function/solution to solve it.
error[E0433]: failed to resolve: use of undeclared type `Seq`
--> src/main.rs:87:42
|
87 | let (s1, s2): (String, String) = Seq::deserialize(d)?;
| ^^^ use of undeclared type `Seq`