Struct so_defi_config::atrix::farms_list::Farm
source · pub struct Farm {
pub id: String,
pub created_at: String,
pub farm_stake_token_account: String,
pub crop_accounts: Vec<Option<String>>,
pub authority: String,
pub stake_mint: String,
pub apy: Option<f64>,
pub name: Option<String>,
}
Fields§
§id: String
§created_at: String
§farm_stake_token_account: String
§crop_accounts: Vec<Option<String>>
§stake_mint: String
§apy: Option<f64>
§name: Option<String>
this is not returned from atrix’s api, however we include this as an option to avoid deserialization but allow manually updating the object with the pool name
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Farm
impl<'de> Deserialize<'de> for Farm
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