bitcoin_units::amount::serde

Module as_sat

source
Available on crate feature serde only.
Expand description

Serialize and deserialize Amount as real numbers denominated in satoshi. Use with #[serde(with = "amount::serde::as_sat")].

Modules§

  • Serialize and deserialize Option<Amount> as real numbers denominated in satoshi. Use with #[serde(default, with = "amount::serde::as_sat::opt")].

Functions§