pub struct DexscrLinkUpdate {
pub chain: String,
pub description: Option<String>,
pub header: Option<String>,
pub icon: Option<String>,
pub links: Option<Value>,
pub open_graph: Option<String>,
pub token_address: String,
pub url: Option<String>,
}Expand description
DexscrLinkUpdate
JSON schema
{
"type": "object",
"required": [
"chain",
"tokenAddress"
],
"properties": {
"chain": {
"description": "Blockchain network identifier",
"examples": [
"sol"
],
"type": "string"
},
"description": {
"description": "Token description",
"type": "string"
},
"header": {
"description": "Token header image URL",
"type": "string"
},
"icon": {
"description": "Token icon URL",
"type": "string"
},
"links": {
"description": "Token social links in JSON format"
},
"openGraph": {
"description": "Token Open Graph image URL",
"type": "string"
},
"tokenAddress": {
"description": "Token contract address",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"url": {
"description": "DexScreener token page URL",
"type": "string"
}
}
}Fields§
§chain: StringBlockchain network identifier
description: Option<String>Token description
header: Option<String>Token header image URL
icon: Option<String>Token icon URL
links: Option<Value>Token social links in JSON format
open_graph: Option<String>Token Open Graph image URL
token_address: StringToken contract address
url: Option<String>DexScreener token page URL
Implementations§
Source§impl DexscrLinkUpdate
impl DexscrLinkUpdate
pub fn builder() -> DexscrLinkUpdate
Trait Implementations§
Source§impl Clone for DexscrLinkUpdate
impl Clone for DexscrLinkUpdate
Source§fn clone(&self) -> DexscrLinkUpdate
fn clone(&self) -> DexscrLinkUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DexscrLinkUpdate
impl Debug for DexscrLinkUpdate
Source§impl<'de> Deserialize<'de> for DexscrLinkUpdate
impl<'de> Deserialize<'de> for DexscrLinkUpdate
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<&DexscrLinkUpdate> for DexscrLinkUpdate
impl From<&DexscrLinkUpdate> for DexscrLinkUpdate
Source§fn from(value: &DexscrLinkUpdate) -> Self
fn from(value: &DexscrLinkUpdate) -> Self
Converts to this type from the input type.
Source§impl From<DexscrLinkUpdate> for DexscrLinkUpdate
impl From<DexscrLinkUpdate> for DexscrLinkUpdate
Source§fn from(value: DexscrLinkUpdate) -> Self
fn from(value: DexscrLinkUpdate) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexscrLinkUpdate
impl Serialize for DexscrLinkUpdate
Source§impl TryFrom<DexscrLinkUpdate> for DexscrLinkUpdate
impl TryFrom<DexscrLinkUpdate> for DexscrLinkUpdate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexscrLinkUpdate) -> Result<Self, ConversionError>
fn try_from(value: DexscrLinkUpdate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexscrLinkUpdate
impl RefUnwindSafe for DexscrLinkUpdate
impl Send for DexscrLinkUpdate
impl Sync for DexscrLinkUpdate
impl Unpin for DexscrLinkUpdate
impl UnsafeUnpin for DexscrLinkUpdate
impl UnwindSafe for DexscrLinkUpdate
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