pub struct DexscrBoost {
pub amount: Option<f64>,
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 total_amount: f64,
pub url: Option<String>,
}Expand description
DexscrBoost
JSON schema
{
"type": "object",
"required": [
"chain",
"tokenAddress",
"totalAmount"
],
"properties": {
"amount": {
"description": "Current boost amount",
"type": "number",
"format": "double"
},
"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"
},
"totalAmount": {
"description": "Total boost amount spent",
"examples": [
500
],
"type": "number",
"format": "double"
},
"url": {
"description": "DexScreener token page URL",
"type": "string"
}
}
}Fields§
§amount: Option<f64>§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
total_amount: f64§url: Option<String>DexScreener token page URL
Implementations§
Source§impl DexscrBoost
impl DexscrBoost
pub fn builder() -> DexscrBoost
Trait Implementations§
Source§impl Clone for DexscrBoost
impl Clone for DexscrBoost
Source§fn clone(&self) -> DexscrBoost
fn clone(&self) -> DexscrBoost
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 DexscrBoost
impl Debug for DexscrBoost
Source§impl<'de> Deserialize<'de> for DexscrBoost
impl<'de> Deserialize<'de> for DexscrBoost
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<&DexscrBoost> for DexscrBoost
impl From<&DexscrBoost> for DexscrBoost
Source§fn from(value: &DexscrBoost) -> Self
fn from(value: &DexscrBoost) -> Self
Converts to this type from the input type.
Source§impl From<DexscrBoost> for DexscrBoost
impl From<DexscrBoost> for DexscrBoost
Source§fn from(value: DexscrBoost) -> Self
fn from(value: DexscrBoost) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexscrBoost
impl Serialize for DexscrBoost
Source§impl TryFrom<DexscrBoost> for DexscrBoost
impl TryFrom<DexscrBoost> for DexscrBoost
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexscrBoost) -> Result<Self, ConversionError>
fn try_from(value: DexscrBoost) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexscrBoost
impl RefUnwindSafe for DexscrBoost
impl Send for DexscrBoost
impl Sync for DexscrBoost
impl Unpin for DexscrBoost
impl UnsafeUnpin for DexscrBoost
impl UnwindSafe for DexscrBoost
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