pub trait SerdeAmount: Copy + Sized + Sealed {
    fn ser_pico<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
    fn des_pico<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>;
    fn ser_xmr<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
    fn des_xmr<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>;
}
Available on crate feature serde only.
Expand description

This trait is used only to avoid code duplication and naming collisions of the different serde serialization crates.

Required Methods

Serialize with Serializer the amount as piconero.

Deserialize with Deserializer an amount in piconero.

Serialize with Serializer the amount as monero.

Deserialize with Deserializer an amount in monero.

Implementors