pub struct Market {Show 13 fields
pub pubkey: String,
pub market_type: String,
pub mint_a: Option<String>,
pub mint_a_account: Option<String>,
pub mint_b: Option<String>,
pub mint_b_account: Option<String>,
pub liquidity_a: Option<String>,
pub liquidity_a_account: Option<String>,
pub liquidity_b: Option<String>,
pub liquidity_b_account: Option<String>,
pub mint_lp: Option<String>,
pub mint_lp_account: Option<String>,
pub lp: Option<MarketLP>,
}Expand description
Market trading pair information
Fields§
§pubkey: StringMarket address
market_type: StringMarket type (e.g., “Raydium”, “Orca”)
mint_a: Option<String>Mint A address
mint_a_account: Option<String>Mint A account
mint_b: Option<String>Mint B address
mint_b_account: Option<String>Mint B account
liquidity_a: Option<String>Liquidity A amount
liquidity_a_account: Option<String>Liquidity A account
liquidity_b: Option<String>Liquidity B amount
liquidity_b_account: Option<String>Liquidity B account
mint_lp: Option<String>LP mint address
mint_lp_account: Option<String>LP mint account
lp: Option<MarketLP>LP token information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Market
impl<'de> Deserialize<'de> for Market
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 Market
impl JsonSchema for Market
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnwindSafe for Market
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