pub fn decode_bigquery_bytes_to_bigdecimal(
bytes: &[u8],
) -> Result<BigDecimal, NumericEncoderError>
Expand description
Decodes a byte string to a BigDecimal value.
§Arguments
bytes
- The byte string to decode.
§Returns
A Result containing either the decoded BigDecimal value or a NumericEncoderError.
§Examples
use big_decimal_byte_string_encoder::decode_bigquery_bytes_to_bigdecimal;
let encoded = vec![0, 140, 134, 71];
let decoded = decode_bigquery_bytes_to_bigdecimal(&encoded).unwrap();