pub struct DexDto {
pub chain: String,
pub image: Option<String>,
pub program_address: Option<String>,
pub protocol_family: Option<String>,
}Expand description
DexDto
JSON schema
{
"type": "object",
"required": [
"chain"
],
"properties": {
"chain": {
"description": "DTO.DEX.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"image": {
"description": "DTO.DEX.IMAGE",
"examples": [
"https://ipfs.io/ipfs/bafkreid7667676767676767676767676767676767676767676767676767676767676767"
],
"type": "string"
},
"programAddress": {
"description": "DTO.DEX.PROGRAM_ADDRESS",
"examples": [
"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
],
"type": "string"
},
"protocolFamily": {
"description": "DTO.DEX.PROTOCOL_FAMILY",
"examples": [
"OrcaWhirpool"
],
"type": "string"
}
}
}Fields§
§chain: StringDTO.DEX.CHAIN
image: Option<String>DTO.DEX.IMAGE
program_address: Option<String>DTO.DEX.PROGRAM_ADDRESS
protocol_family: Option<String>DTO.DEX.PROTOCOL_FAMILY
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DexDto
impl<'de> Deserialize<'de> for DexDto
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 DexDto
impl RefUnwindSafe for DexDto
impl Send for DexDto
impl Sync for DexDto
impl Unpin for DexDto
impl UnwindSafe for DexDto
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