pub trait SerdeAmountForOpt: Copy + Sized + SerdeAmount + Sealed {
    fn type_prefix() -> &'static str;
    fn ser_pico_opt<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
    fn ser_xmr_opt<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
}
Available on crate feature serde only.
Expand description

This trait is only for internal Amount type serialization/deserialization.

Required Methods§

Return the type prefix (i or u) used to sign or not the amount.

Serialize with Serializer an optional amount as piconero.

Serialize with Serializer an optional amount as monero.

Implementors§