pub struct TokenExtra {Show 21 fields
pub collection_address: Option<String>,
pub edition_nonce: Option<i64>,
pub freeze_authority: Option<String>,
pub fungible: Option<bool>,
pub is_mutable: Option<bool>,
pub is_native: Option<bool>,
pub is_verified_collection: Option<bool>,
pub is_wrapped: Option<bool>,
pub key: Option<String>,
pub launch_from_program_address: Option<String>,
pub launch_from_protocol_family: Option<String>,
pub migrated_at: Option<i64>,
pub migrated_to_pool_address: Option<String>,
pub migrated_to_program_address: Option<String>,
pub migrated_to_protocol_family: Option<String>,
pub mint_authority: Option<String>,
pub primary_sale_happened: Option<bool>,
pub program_address: Option<String>,
pub seller_fee_basis_points: Option<i64>,
pub token_standard: Option<String>,
pub update_authority: Option<String>,
}Expand description
Token extra metadata
JSON schema
{
"description": "Token extra metadata",
"type": "object",
"properties": {
"collectionAddress": {
"description": "NFT collection address",
"examples": [
"ABCDE"
],
"type": "string"
},
"editionNonce": {
"description": "Edition nonce value",
"examples": [
1
],
"type": "integer",
"format": "int64"
},
"freezeAuthority": {
"description": "Freeze authority address",
"examples": [
"B61ZzjjZskE9yur2CBe4H4NFS3XHdEZdatKNegC9smUV"
],
"type": "string"
},
"fungible": {
"description": "Whether the token is fungible",
"examples": [
true
],
"type": "boolean"
},
"isMutable": {
"description": "Whether metadata is mutable",
"examples": [
true
],
"type": "boolean"
},
"isNative": {
"description": "Whether the token is native (e.g., SOL)",
"examples": [
false
],
"type": "boolean"
},
"isVerifiedCollection": {
"description": "Whether the collection is verified",
"examples": [
true
],
"type": "boolean"
},
"isWrapped": {
"description": "Whether the token is wrapped",
"examples": [
false
],
"type": "boolean"
},
"key": {
"description": "Metaplex account key type",
"examples": [
"Mint"
],
"type": "string"
},
"launchFromProgramAddress": {
"description": "Launch platform program address",
"examples": [
"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
],
"type": "string"
},
"launchFromProtocolFamily": {
"description": "Launch platform protocol family",
"examples": [
"pumpfun"
],
"type": "string"
},
"migratedAt": {
"description": "Migration timestamp (milliseconds)",
"examples": [
1714857600000
],
"type": "integer",
"format": "int64"
},
"migratedToPoolAddress": {
"description": "Migrated-to pool address",
"examples": [
"7AvUMqLBou5EAXzyhnizWmPU13u2VguJoBYdcX4bhJtQ"
],
"type": "string"
},
"migratedToProgramAddress": {
"description": "Migrated-to program address",
"examples": [
"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
],
"type": "string"
},
"migratedToProtocolFamily": {
"description": "Migrated-to protocol family",
"examples": [
"Raydium"
],
"type": "string"
},
"mintAuthority": {
"description": "Mint authority address",
"examples": [
"B61ZzjjZskE9yur2CBe4H4NFS3XHdEZdatKNegC9smUV"
],
"type": "string"
},
"primarySaleHappened": {
"description": "Whether the primary sale has occurred",
"examples": [
false
],
"type": "boolean"
},
"programAddress": {
"description": "Token program address",
"examples": [
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
],
"type": "string"
},
"sellerFeeBasisPoints": {
"description": "Seller fee in basis points",
"examples": [
100
],
"type": "integer",
"format": "int64"
},
"tokenStandard": {
"description": "Token standard (e.g., Fungible)",
"examples": [
"Fungible"
],
"type": "string"
},
"updateAuthority": {
"description": "Update authority address",
"examples": [
"B61ZzjjZskE9yur2CBe4H4NFS3XHdEZdatKNegC9smUV"
],
"type": "string"
}
}
}Fields§
§collection_address: Option<String>NFT collection address
edition_nonce: Option<i64>Edition nonce value
Freeze authority address
fungible: Option<bool>Whether the token is fungible
is_mutable: Option<bool>Whether metadata is mutable
is_native: Option<bool>Whether the token is native (e.g., SOL)
is_verified_collection: Option<bool>Whether the collection is verified
is_wrapped: Option<bool>Whether the token is wrapped
key: Option<String>Metaplex account key type
launch_from_program_address: Option<String>Launch platform program address
launch_from_protocol_family: Option<String>Launch platform protocol family
migrated_at: Option<i64>Migration timestamp (milliseconds)
migrated_to_pool_address: Option<String>Migrated-to pool address
migrated_to_program_address: Option<String>Migrated-to program address
migrated_to_protocol_family: Option<String>Migrated-to protocol family
Mint authority address
primary_sale_happened: Option<bool>Whether the primary sale has occurred
program_address: Option<String>Token program address
seller_fee_basis_points: Option<i64>Seller fee in basis points
token_standard: Option<String>Token standard (e.g., Fungible)
Update authority address
Implementations§
Source§impl TokenExtra
impl TokenExtra
pub fn builder() -> TokenExtra
Trait Implementations§
Source§impl Clone for TokenExtra
impl Clone for TokenExtra
Source§fn clone(&self) -> TokenExtra
fn clone(&self) -> TokenExtra
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 TokenExtra
impl Debug for TokenExtra
Source§impl Default for TokenExtra
impl Default for TokenExtra
Source§impl<'de> Deserialize<'de> for TokenExtra
impl<'de> Deserialize<'de> for TokenExtra
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<&TokenExtra> for TokenExtra
impl From<&TokenExtra> for TokenExtra
Source§fn from(value: &TokenExtra) -> Self
fn from(value: &TokenExtra) -> Self
Converts to this type from the input type.
Source§impl From<TokenExtra> for TokenExtra
impl From<TokenExtra> for TokenExtra
Source§fn from(value: TokenExtra) -> Self
fn from(value: TokenExtra) -> Self
Converts to this type from the input type.
Source§impl Serialize for TokenExtra
impl Serialize for TokenExtra
Source§impl TryFrom<TokenExtra> for TokenExtra
impl TryFrom<TokenExtra> for TokenExtra
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenExtra) -> Result<Self, ConversionError>
fn try_from(value: TokenExtra) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TokenExtra
impl RefUnwindSafe for TokenExtra
impl Send for TokenExtra
impl Sync for TokenExtra
impl Unpin for TokenExtra
impl UnsafeUnpin for TokenExtra
impl UnwindSafe for TokenExtra
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