pub struct PageResponseDexDataItem {
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§
Source§impl PageResponseDexDataItem
impl PageResponseDexDataItem
pub fn builder() -> PageResponseDexDataItem
Trait Implementations§
Source§impl Clone for PageResponseDexDataItem
impl Clone for PageResponseDexDataItem
Source§fn clone(&self) -> PageResponseDexDataItem
fn clone(&self) -> PageResponseDexDataItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageResponseDexDataItem
impl Debug for PageResponseDexDataItem
Source§impl<'de> Deserialize<'de> for PageResponseDexDataItem
impl<'de> Deserialize<'de> for PageResponseDexDataItem
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 From<&PageResponseDexDataItem> for PageResponseDexDataItem
impl From<&PageResponseDexDataItem> for PageResponseDexDataItem
Source§fn from(value: &PageResponseDexDataItem) -> Self
fn from(value: &PageResponseDexDataItem) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseDexDataItem> for PageResponseDexDataItem
impl From<PageResponseDexDataItem> for PageResponseDexDataItem
Source§fn from(value: PageResponseDexDataItem) -> Self
fn from(value: PageResponseDexDataItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for PageResponseDexDataItem
impl Serialize for PageResponseDexDataItem
Source§impl TryFrom<PageResponseDexDataItem> for PageResponseDexDataItem
impl TryFrom<PageResponseDexDataItem> for PageResponseDexDataItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseDexDataItem) -> Result<Self, ConversionError>
fn try_from(value: PageResponseDexDataItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseDexDataItem
impl RefUnwindSafe for PageResponseDexDataItem
impl Send for PageResponseDexDataItem
impl Sync for PageResponseDexDataItem
impl Unpin for PageResponseDexDataItem
impl UnsafeUnpin for PageResponseDexDataItem
impl UnwindSafe for PageResponseDexDataItem
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