pub struct EarnStrategy {Show 13 fields
pub allocation_fee: EarnFee,
pub allocation_restriction_info: Vec<String>,
pub apr_estimate: Option<AprEstimate>,
pub asset: String,
pub auto_compound: AutoCompound,
pub can_allocate: bool,
pub can_deallocate: bool,
pub deallocation_fee: EarnFee,
pub id: String,
pub lock_type: LockTypeDetail,
pub user_cap: Option<Decimal>,
pub user_min_allocation: Option<Decimal>,
pub yield_source: YieldSource,
}
Expand description
Description of an individual earn strategy
Fields§
§allocation_fee: EarnFee
§allocation_restriction_info: Vec<String>
§apr_estimate: Option<AprEstimate>
§asset: String
§auto_compound: AutoCompound
§can_allocate: bool
§can_deallocate: bool
§deallocation_fee: EarnFee
§id: String
§lock_type: LockTypeDetail
§user_cap: Option<Decimal>
§user_min_allocation: Option<Decimal>
§yield_source: YieldSource
Trait Implementations§
Source§impl Clone for EarnStrategy
impl Clone for EarnStrategy
Source§fn clone(&self) -> EarnStrategy
fn clone(&self) -> EarnStrategy
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 EarnStrategy
impl Debug for EarnStrategy
Source§impl<'de> Deserialize<'de> for EarnStrategy
impl<'de> Deserialize<'de> for EarnStrategy
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 EarnStrategy
impl PartialEq for EarnStrategy
impl StructuralPartialEq for EarnStrategy
Auto Trait Implementations§
impl Freeze for EarnStrategy
impl RefUnwindSafe for EarnStrategy
impl Send for EarnStrategy
impl Sync for EarnStrategy
impl Unpin for EarnStrategy
impl UnwindSafe for EarnStrategy
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