pub struct DexscrAd {
pub ad_type: Option<String>,
pub chain: String,
pub date: Option<String>,
pub duration_hours: Option<i64>,
pub impressions: Option<i64>,
pub token_address: String,
pub url: Option<String>,
}Expand description
DexscrAd
JSON schema
{
"type": "object",
"required": [
"chain",
"tokenAddress"
],
"properties": {
"adType": {
"description": "Ad type (e.g. banner)",
"type": "string"
},
"chain": {
"description": "Blockchain network identifier",
"examples": [
"sol"
],
"type": "string"
},
"date": {
"description": "Ad start date",
"type": "string"
},
"durationHours": {
"description": "Ad duration in hours",
"type": "integer",
"format": "int64"
},
"impressions": {
"description": "Total ad impressions count",
"type": "integer",
"format": "int64"
},
"tokenAddress": {
"description": "Token contract address",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"url": {
"description": "DexScreener token page URL",
"type": "string"
}
}
}Fields§
§ad_type: Option<String>Ad type (e.g. banner)
chain: StringBlockchain network identifier
date: Option<String>Ad start date
duration_hours: Option<i64>Ad duration in hours
impressions: Option<i64>Total ad impressions count
token_address: StringToken contract address
url: Option<String>DexScreener token page URL
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DexscrAd
impl<'de> Deserialize<'de> for DexscrAd
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 DexscrAd
impl RefUnwindSafe for DexscrAd
impl Send for DexscrAd
impl Sync for DexscrAd
impl Unpin for DexscrAd
impl UnsafeUnpin for DexscrAd
impl UnwindSafe for DexscrAd
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