|
@@ -26,6 +26,36 @@ impl<'de, 'a> serde::de::Deserializer<'de> for &'a mut RowDeserializer<'de> {
|
|
todo!()
|
|
todo!()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ fn deserialize_bool<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
|
|
+ let res = v.visit_bool(self.row.get(self.col_index)?);
|
|
|
|
+ self.col_index += 1;
|
|
|
|
+ res
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fn deserialize_i8<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
|
|
+ let res = v.visit_i8(self.row.get(self.col_index)?);
|
|
|
|
+ self.col_index += 1;
|
|
|
|
+ res
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fn deserialize_i16<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
|
|
+ let res = v.visit_i16(self.row.get(self.col_index)?);
|
|
|
|
+ self.col_index += 1;
|
|
|
|
+ res
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fn deserialize_i32<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
|
|
+ let res = v.visit_i32(self.row.get(self.col_index)?);
|
|
|
|
+ self.col_index += 1;
|
|
|
|
+ res
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fn deserialize_i64<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
|
|
+ let res = v.visit_i64(self.row.get(self.col_index)?);
|
|
|
|
+ self.col_index += 1;
|
|
|
|
+ res
|
|
|
|
+ }
|
|
|
|
+
|
|
fn deserialize_string<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
fn deserialize_string<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Self::Error> {
|
|
let res = v.visit_string(self.row.get(self.col_index)?);
|
|
let res = v.visit_string(self.row.get(self.col_index)?);
|
|
self.col_index += 1;
|
|
self.col_index += 1;
|
|
@@ -37,7 +67,7 @@ impl<'de, 'a> serde::de::Deserializer<'de> for &'a mut RowDeserializer<'de> {
|
|
}
|
|
}
|
|
|
|
|
|
serde::forward_to_deserialize_any! {
|
|
serde::forward_to_deserialize_any! {
|
|
- bool i8 i16 i32 i64 i128 u8 u16 u32 u64 u128 f32 f64 char str
|
|
|
|
|
|
+ i128 u8 u16 u32 u64 u128 f32 f64 char str
|
|
bytes byte_buf option unit unit_struct newtype_struct seq tuple
|
|
bytes byte_buf option unit unit_struct newtype_struct seq tuple
|
|
tuple_struct map enum identifier ignored_any
|
|
tuple_struct map enum identifier ignored_any
|
|
}
|
|
}
|