pub struct EarnAmount {
pub converted: Decimal,
pub native: Decimal,
}
Expand description
Amount earned by an allocation in the requested and native assets
Fields§
§converted: Decimal
§native: Decimal
Trait Implementations§
Source§impl Clone for EarnAmount
impl Clone for EarnAmount
Source§fn clone(&self) -> EarnAmount
fn clone(&self) -> EarnAmount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EarnAmount
impl Debug for EarnAmount
Source§impl<'de> Deserialize<'de> for EarnAmount
impl<'de> Deserialize<'de> for EarnAmount
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
Source§impl PartialEq for EarnAmount
impl PartialEq for EarnAmount
impl Copy for EarnAmount
impl StructuralPartialEq for EarnAmount
Auto Trait Implementations§
impl Freeze for EarnAmount
impl RefUnwindSafe for EarnAmount
impl Send for EarnAmount
impl Sync for EarnAmount
impl Unpin for EarnAmount
impl UnwindSafe for EarnAmount
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