Trait bitcoin_units::amount::serde::SerdeAmountForOpt
source · pub trait SerdeAmountForOpt: Copy + Sized + SerdeAmount {
// Required methods
fn type_prefix(_: Token) -> &'static str;
fn ser_sat_opt<S: Serializer>(
self,
s: S,
_: Token
) -> Result<S::Ok, S::Error>;
fn ser_btc_opt<S: Serializer>(
self,
s: S,
_: Token
) -> Result<S::Ok, S::Error>;
}
Expand description
This trait is only for internal Amount type serialization/deserialization