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

Function serialize

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