Trait breez_sdk_core::bitcoin::util::amount::serde::SerdeAmountForOpt
pub trait SerdeAmountForOpt:
Sized
+ Copy
+ SerdeAmount
+ Sealed {
// Required methods
fn type_prefix() -> &'static str;
fn ser_sat_opt<S>(
self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer;
fn ser_btc_opt<S>(
self,
s: S,
) -> 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§
fn type_prefix() -> &'static str
fn ser_sat_opt<S>(
self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn ser_btc_opt<S>(
self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Object Safety§
This trait is not object safe.