Expand description
(De)serialize BigDecimal as a Schema::BigDecimal instead of a Schema::String.
This module is intended to be used through the Serde with attribute.
Use apache_avro::serde::bigdecimal_opt for optional big decimals values.
When used with different serialization formats, this will write bytes.
See usage with below example:
#[derive(AvroSchema, Serialize, Deserialize)]
struct StructWithBigDecimal {
#[avro(with)]
#[serde(with = "apache_avro::serde::bigdecimal")]
decimal: BigDecimal,
}