pub struct Dex {
pub chain: String,
pub image: Option<String>,
pub program_address: Option<String>,
pub protocol_family: Option<DexProtocolFamily>,
}Expand description
DEX information
JSON schema
{
"description": "DEX information",
"type": "object",
"required": [
"chain"
],
"properties": {
"chain": {
"description": "Chain identifier",
"examples": [
"sol"
],
"type": "string"
},
"image": {
"description": "DEX image URL",
"examples": [
"https://example.com/dex-logo.png"
],
"type": "string"
},
"programAddress": {
"description": "DEX program address",
"examples": [
"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
],
"type": "string"
},
"protocolFamily": {
"$ref": "#/components/schemas/DexProtocolFamily"
}
}
}Fields§
§chain: StringChain identifier
image: Option<String>DEX image URL
program_address: Option<String>DEX program address
protocol_family: Option<DexProtocolFamily>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dex
impl<'de> Deserialize<'de> for Dex
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
Auto Trait Implementations§
impl Freeze for Dex
impl RefUnwindSafe for Dex
impl Send for Dex
impl Sync for Dex
impl Unpin for Dex
impl UnsafeUnpin for Dex
impl UnwindSafe for Dex
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