Trait bitcoin::util::amount::serde::SerdeAmountForOpt[][src]

pub trait SerdeAmountForOpt: Copy + Sized + SerdeAmount + Sealed {
    fn type_prefix() -> &'static str;
fn ser_sat_opt<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
fn ser_btc_opt<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>; }

This trait is only for internal Amount type serialization/deserialization

Required methods

fn type_prefix() -> &'static str[src]

fn ser_sat_opt<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>[src]

fn ser_btc_opt<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>[src]

Loading content...

Implementors

impl SerdeAmountForOpt for Amount[src]

impl SerdeAmountForOpt for SignedAmount[src]

Loading content...