pub struct EarnAllocations {
pub converted_asset: String,
pub items: Vec<EarnAllocation>,
pub total_allocated: Decimal,
pub total_rewarded: Decimal,
}
Expand description
Response type for Earn/Allocations
Fields§
§converted_asset: String
§items: Vec<EarnAllocation>
§total_allocated: Decimal
§total_rewarded: Decimal
Trait Implementations§
Source§impl Clone for EarnAllocations
impl Clone for EarnAllocations
Source§fn clone(&self) -> EarnAllocations
fn clone(&self) -> EarnAllocations
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 EarnAllocations
impl Debug for EarnAllocations
Source§impl<'de> Deserialize<'de> for EarnAllocations
impl<'de> Deserialize<'de> for EarnAllocations
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 EarnAllocations
impl PartialEq for EarnAllocations
impl StructuralPartialEq for EarnAllocations
Auto Trait Implementations§
impl Freeze for EarnAllocations
impl RefUnwindSafe for EarnAllocations
impl Send for EarnAllocations
impl Sync for EarnAllocations
impl Unpin for EarnAllocations
impl UnwindSafe for EarnAllocations
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