Deserializes a column value into the expected type, or returns an error. The `column` parameter is only used for error reporting; it identifies which result column failed to deserialize.
(
&self,
r#type: TypeId,
value: JsonValueRef<'_>,
column: Indexed<ColumnDescriptor>,
)
| 392 | /// The `column` parameter is only used for error reporting; |
| 393 | /// it identifies which result column failed to deserialize. |
| 394 | pub(crate) fn try_decode( |
| 395 | &self, |
| 396 | r#type: TypeId, |
| 397 | value: JsonValueRef<'_>, |
| 398 | column: Indexed<ColumnDescriptor>, |
| 399 | ) -> Result<Value<'heap, A>, BridgeError<'heap>> |
| 400 | where |
| 401 | A: Clone, |
| 402 | { |
| 403 | self.decode(r#type, value) |
| 404 | .map_err(|source| BridgeError::ValueDeserialization { column, source }) |
| 405 | } |
| 406 | } |
no test coverage detected