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": "ENTITY.DEXSCR_LINK_UPDATE.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"description": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.DESCRIPTION",
"type": "string"
},
"header": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.HEADER",
"type": "string"
},
"icon": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.ICON",
"type": "string"
},
"links": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.LINKS"
},
"openGraph": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.OPEN_GRAPH",
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.TOKEN_ADDRESS",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"url": {
"description": "ENTITY.DEXSCR_LINK_UPDATE.URL",
"type": "string"
}
}
}Fields§
§chain: StringENTITY.DEXSCR_LINK_UPDATE.CHAIN
description: Option<String>ENTITY.DEXSCR_LINK_UPDATE.DESCRIPTION
header: Option<String>ENTITY.DEXSCR_LINK_UPDATE.HEADER
icon: Option<String>ENTITY.DEXSCR_LINK_UPDATE.ICON
links: Option<Value>ENTITY.DEXSCR_LINK_UPDATE.LINKS
open_graph: Option<String>ENTITY.DEXSCR_LINK_UPDATE.OPEN_GRAPH
token_address: StringENTITY.DEXSCR_LINK_UPDATE.TOKEN_ADDRESS
url: Option<String>ENTITY.DEXSCR_LINK_UPDATE.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