pub struct MoonshotCreateTokenInput {
pub banner: Option<String>,
pub description: MoonshotCreateTokenInputDescription,
pub dex: MoonshotCreateTokenInputDex,
pub icon: MoonshotCreateTokenInputIcon,
pub links: Vec<Link>,
pub migration_dex: MoonshotCreateTokenInputMigrationDex,
pub name: MoonshotCreateTokenInputName,
pub priority_fee: Option<String>,
pub symbol: MoonshotCreateTokenInputSymbol,
pub token_amount: MoonshotCreateTokenInputTokenAmount,
pub user_address: MoonshotCreateTokenInputUserAddress,
}Expand description
MoonshotCreateTokenInput
JSON schema
{
"type": "object",
"required": [
"description",
"dex",
"icon",
"links",
"migrationDex",
"name",
"symbol",
"tokenAmount",
"userAddress"
],
"properties": {
"banner": {
"description": "DTO.DEX.MOONSHOT.MINT.BANNER",
"examples": [
"https://assets.mytoken.com/banner.png"
],
"type": "string"
},
"description": {
"description": "DTO.DEX.MOONSHOT.MINT.DESCRIPTION",
"examples": [
"A revolutionary new token for the Solana ecosystem"
],
"type": "string",
"maxLength": 1000
},
"dex": {
"description": "DTO.DEX.IDENTIFIER",
"examples": [
"moonshot"
],
"type": "string",
"enum": [
"moonshot"
]
},
"icon": {
"description": "DTO.DEX.MOONSHOT.MINT.ICON",
"examples": [
"https://assets.mytoken.com/icon.png"
],
"type": "string",
"pattern": "^(https?://|data:image/)"
},
"links": {
"description": "DTO.DEX.MOONSHOT.MINT.LINKS",
"type": "array",
"items": {
"$ref": "#/components/schemas/Link"
}
},
"migrationDex": {
"description": "DTO.DEX.MOONSHOT.MINT.MIGRATION_DEX",
"examples": [
"RAYDIUM"
],
"type": "string",
"enum": [
"RAYDIUM",
"METEORA",
"UNISWAP"
]
},
"name": {
"description": "DTO.DEX.MOONSHOT.MINT.NAME",
"examples": [
"My Token"
],
"type": "string",
"maxLength": 32,
"minLength": 1
},
"priorityFee": {
"description": "DTO.DEX.BASE.PRIORITY_FEE",
"examples": [
"1000"
],
"type": "string"
},
"symbol": {
"description": "DTO.DEX.MOONSHOT.MINT.SYMBOL",
"examples": [
"MTK"
],
"type": "string",
"maxLength": 10,
"minLength": 1
},
"tokenAmount": {
"description": "DTO.DEX.MOONSHOT.MINT.TOKEN_AMOUNT",
"examples": [
"1000000000"
],
"type": "string",
"pattern": "^[0-9]+$"
},
"userAddress": {
"description": "DTO.DEX.WALLET",
"examples": [
"oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7"
],
"type": "string",
"maxLength": 64,
"minLength": 8
}
}
}Fields§
DTO.DEX.MOONSHOT.MINT.BANNER
description: MoonshotCreateTokenInputDescriptionDTO.DEX.MOONSHOT.MINT.DESCRIPTION
dex: MoonshotCreateTokenInputDexDTO.DEX.IDENTIFIER
icon: MoonshotCreateTokenInputIconDTO.DEX.MOONSHOT.MINT.ICON
links: Vec<Link>DTO.DEX.MOONSHOT.MINT.LINKS
migration_dex: MoonshotCreateTokenInputMigrationDexDTO.DEX.MOONSHOT.MINT.MIGRATION_DEX
name: MoonshotCreateTokenInputNameDTO.DEX.MOONSHOT.MINT.NAME
priority_fee: Option<String>DTO.DEX.BASE.PRIORITY_FEE
symbol: MoonshotCreateTokenInputSymbolDTO.DEX.MOONSHOT.MINT.SYMBOL
token_amount: MoonshotCreateTokenInputTokenAmountDTO.DEX.MOONSHOT.MINT.TOKEN_AMOUNT
user_address: MoonshotCreateTokenInputUserAddressDTO.DEX.WALLET
Implementations§
Source§impl MoonshotCreateTokenInput
impl MoonshotCreateTokenInput
pub fn builder() -> MoonshotCreateTokenInput
Trait Implementations§
Source§impl Clone for MoonshotCreateTokenInput
impl Clone for MoonshotCreateTokenInput
Source§fn clone(&self) -> MoonshotCreateTokenInput
fn clone(&self) -> MoonshotCreateTokenInput
Returns a duplicate of the value. Read more
1.0.0 · 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 MoonshotCreateTokenInput
impl Debug for MoonshotCreateTokenInput
Source§impl<'de> Deserialize<'de> for MoonshotCreateTokenInput
impl<'de> Deserialize<'de> for MoonshotCreateTokenInput
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<&MoonshotCreateTokenInput> for MoonshotCreateTokenInput
impl From<&MoonshotCreateTokenInput> for MoonshotCreateTokenInput
Source§fn from(value: &MoonshotCreateTokenInput) -> Self
fn from(value: &MoonshotCreateTokenInput) -> Self
Converts to this type from the input type.
Source§impl From<MoonshotCreateTokenInput> for MoonshotCreateTokenInput
impl From<MoonshotCreateTokenInput> for MoonshotCreateTokenInput
Source§fn from(value: MoonshotCreateTokenInput) -> Self
fn from(value: MoonshotCreateTokenInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for MoonshotCreateTokenInput
impl Serialize for MoonshotCreateTokenInput
Source§impl TryFrom<MoonshotCreateTokenInput> for MoonshotCreateTokenInput
impl TryFrom<MoonshotCreateTokenInput> for MoonshotCreateTokenInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MoonshotCreateTokenInput) -> Result<Self, ConversionError>
fn try_from(value: MoonshotCreateTokenInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MoonshotCreateTokenInput
impl RefUnwindSafe for MoonshotCreateTokenInput
impl Send for MoonshotCreateTokenInput
impl Sync for MoonshotCreateTokenInput
impl Unpin for MoonshotCreateTokenInput
impl UnwindSafe for MoonshotCreateTokenInput
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