bdk_chain::bitcoin::amount::serde::as_btc

Function serialize

pub fn serialize<A, S>(
    a: &A,
    s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where A: SerdeAmount, S: Serializer,