pub trait SerdeAmount: Copy + Sized + Sealed {
    fn ser_dust<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
    fn des_dust<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>;
    fn ser_wow<S: Serializer>(self, s: S) -> Result<S::Ok, S::Error>;
    fn des_wow<'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 dustnero.

Deserialize with Deserializer an amount in dustnero.

Serialize with Serializer the amount as Wownero.

Deserialize with Deserializer an amount in Wownero.

Implementors