bitcoin_units::amount::serde::as_sat::opt

Function serialize

source
pub fn serialize<A: SerdeAmountForOpt, S: Serializer>(
    a: &Option<A>,
    s: S,
) -> Result<S::Ok, S::Error>
Available on crate feature serde only.