pub struct EarnAllocation {
pub amount_allocated: AmountAllocated,
pub native_asset: String,
pub payout: Option<Payout>,
pub strategy_id: String,
pub total_rewarded: EarnAmount,
}
Expand description
Description of an allocation to an earn strategy
Fields§
§amount_allocated: AmountAllocated
§native_asset: String
§payout: Option<Payout>
§strategy_id: String
§total_rewarded: EarnAmount
Trait Implementations§
Source§impl Clone for EarnAllocation
impl Clone for EarnAllocation
Source§fn clone(&self) -> EarnAllocation
fn clone(&self) -> EarnAllocation
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 EarnAllocation
impl Debug for EarnAllocation
Source§impl<'de> Deserialize<'de> for EarnAllocation
impl<'de> Deserialize<'de> for EarnAllocation
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 EarnAllocation
impl PartialEq for EarnAllocation
impl StructuralPartialEq for EarnAllocation
Auto Trait Implementations§
impl Freeze for EarnAllocation
impl RefUnwindSafe for EarnAllocation
impl Send for EarnAllocation
impl Sync for EarnAllocation
impl Unpin for EarnAllocation
impl UnwindSafe for EarnAllocation
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