pub trait SerdeAmountForOpt: Copy + Sized + SerdeAmount {
    // Required methods
    fn type_prefix(_: Token) -> &'static str;
    fn ser_sat_opt<S>(
        self,
        s: S,
        _: Token
    ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
       where S: Serializer;
    fn ser_btc_opt<S>(
        self,
        s: S,
        _: Token
    ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
       where S: Serializer;
}
Expand description

This trait is only for internal Amount type serialization/deserialization

Required Methods§

source

fn type_prefix(_: Token) -> &'static str

source

fn ser_sat_opt<S>( self, s: S, _: Token ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

source

fn ser_btc_opt<S>( self, s: S, _: Token ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Implementors§