pub struct EarnPool {Show 16 fields
pub pool_id: u64,
pub assets: Vec<PoolAsset>,
pub pool_ratio: String,
pub rewards_apr: String,
pub borrow_apr: String,
pub leverage_lp: String,
pub perpetual: String,
pub tvl: String,
pub lp_token_price: String,
pub rewards_usd: String,
pub reward_coins: Vec<Coin>,
pub total_shares: Option<Coin>,
pub swap_fee: String,
pub fee_denom: String,
pub use_oracle: bool,
pub is_leveragelp: bool,
}
Fields§
§pool_id: u64
§assets: Vec<PoolAsset>
§pool_ratio: String
§rewards_apr: String
§borrow_apr: String
§leverage_lp: String
§perpetual: String
§tvl: String
§lp_token_price: String
§rewards_usd: String
§reward_coins: Vec<Coin>
§swap_fee: String
§fee_denom: String
§use_oracle: bool
§is_leveragelp: bool
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EarnPool
impl<'de> Deserialize<'de> for EarnPool
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 JsonSchema for EarnPool
impl JsonSchema for EarnPool
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Message for EarnPool
impl Message for EarnPool
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl TryFrom<SubMsgResult> for EarnPool
impl TryFrom<SubMsgResult> for EarnPool
impl Eq for EarnPool
impl StructuralPartialEq for EarnPool
Auto Trait Implementations§
impl Freeze for EarnPool
impl RefUnwindSafe for EarnPool
impl Send for EarnPool
impl Sync for EarnPool
impl Unpin for EarnPool
impl UnwindSafe for EarnPool
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