pub enum EarnFee {
Decimal(Decimal),
Integer(i64),
Float(f64),
}
Expand description
Wrapper type for loose typing of allocation/earn fees
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EarnFee
impl<'de> Deserialize<'de> for EarnFee
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for EarnFee
impl StructuralPartialEq for EarnFee
Auto Trait Implementations§
impl Freeze for EarnFee
impl RefUnwindSafe for EarnFee
impl Send for EarnFee
impl Sync for EarnFee
impl Unpin for EarnFee
impl UnwindSafe for EarnFee
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more