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": "ENTITY.DEXSCR_BOOST.AMOUNT",
"type": "number",
"format": "double"
},
"chain": {
"description": "ENTITY.DEXSCR_BOOST.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"description": {
"description": "ENTITY.DEXSCR_BOOST.DESCRIPTION",
"type": "string"
},
"header": {
"description": "ENTITY.DEXSCR_BOOST.HEADER",
"type": "string"
},
"icon": {
"description": "ENTITY.DEXSCR_BOOST.ICON",
"type": "string"
},
"links": {
"description": "ENTITY.DEXSCR_BOOST.LINKS"
},
"openGraph": {
"description": "ENTITY.DEXSCR_BOOST.OPEN_GRAPH",
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.DEXSCR_BOOST.TOKEN_ADDRESS",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"totalAmount": {
"description": "ENTITY.DEXSCR_BOOST.TOTAL_AMOUNT",
"examples": [
500.0
],
"type": "number",
"format": "double"
},
"url": {
"description": "ENTITY.DEXSCR_BOOST.URL",
"type": "string"
}
}
}Fields§
§amount: Option<f64>§chain: StringENTITY.DEXSCR_BOOST.CHAIN
description: Option<String>ENTITY.DEXSCR_BOOST.DESCRIPTION
header: Option<String>ENTITY.DEXSCR_BOOST.HEADER
icon: Option<String>ENTITY.DEXSCR_BOOST.ICON
links: Option<Value>ENTITY.DEXSCR_BOOST.LINKS
open_graph: Option<String>ENTITY.DEXSCR_BOOST.OPEN_GRAPH
token_address: StringENTITY.DEXSCR_BOOST.TOKEN_ADDRESS
total_amount: f64§url: Option<String>ENTITY.DEXSCR_BOOST.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