Enum mpl_token_metadata::types::CreateArgs
source · pub enum CreateArgs {
V1 {Show 14 fields
name: String,
symbol: String,
uri: String,
seller_fee_basis_points: u16,
creators: Option<Vec<Creator>>,
primary_sale_happened: bool,
is_mutable: bool,
token_standard: TokenStandard,
collection: Option<Collection>,
uses: Option<Uses>,
collection_details: Option<CollectionDetails>,
rule_set: Option<Pubkey>,
decimals: Option<u8>,
print_supply: Option<PrintSupply>,
},
}
Variants§
V1
Fields
§
token_standard: TokenStandard
§
collection: Option<Collection>
§
collection_details: Option<CollectionDetails>
§
print_supply: Option<PrintSupply>
Trait Implementations§
source§impl BorshDeserialize for CreateArgswhere
String: BorshDeserialize,
u16: BorshDeserialize,
Option<Vec<Creator>>: BorshDeserialize,
bool: BorshDeserialize,
TokenStandard: BorshDeserialize,
Option<Collection>: BorshDeserialize,
Option<Uses>: BorshDeserialize,
Option<CollectionDetails>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<u8>: BorshDeserialize,
Option<PrintSupply>: BorshDeserialize,
impl BorshDeserialize for CreateArgswhere String: BorshDeserialize, u16: BorshDeserialize, Option<Vec<Creator>>: BorshDeserialize, bool: BorshDeserialize, TokenStandard: BorshDeserialize, Option<Collection>: BorshDeserialize, Option<Uses>: BorshDeserialize, Option<CollectionDetails>: BorshDeserialize, Option<Pubkey>: BorshDeserialize, Option<u8>: BorshDeserialize, Option<PrintSupply>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for CreateArgswhere
String: BorshSerialize,
u16: BorshSerialize,
Option<Vec<Creator>>: BorshSerialize,
bool: BorshSerialize,
TokenStandard: BorshSerialize,
Option<Collection>: BorshSerialize,
Option<Uses>: BorshSerialize,
Option<CollectionDetails>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<u8>: BorshSerialize,
Option<PrintSupply>: BorshSerialize,
impl BorshSerialize for CreateArgswhere String: BorshSerialize, u16: BorshSerialize, Option<Vec<Creator>>: BorshSerialize, bool: BorshSerialize, TokenStandard: BorshSerialize, Option<Collection>: BorshSerialize, Option<Uses>: BorshSerialize, Option<CollectionDetails>: BorshSerialize, Option<Pubkey>: BorshSerialize, Option<u8>: BorshSerialize, Option<PrintSupply>: BorshSerialize,
source§impl Clone for CreateArgs
impl Clone for CreateArgs
source§fn clone(&self) -> CreateArgs
fn clone(&self) -> CreateArgs
Returns a copy 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 CreateArgs
impl Debug for CreateArgs
source§impl EnumExt for CreateArgswhere
String: BorshDeserialize,
u16: BorshDeserialize,
Option<Vec<Creator>>: BorshDeserialize,
bool: BorshDeserialize,
TokenStandard: BorshDeserialize,
Option<Collection>: BorshDeserialize,
Option<Uses>: BorshDeserialize,
Option<CollectionDetails>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<u8>: BorshDeserialize,
Option<PrintSupply>: BorshDeserialize,
impl EnumExt for CreateArgswhere String: BorshDeserialize, u16: BorshDeserialize, Option<Vec<Creator>>: BorshDeserialize, bool: BorshDeserialize, TokenStandard: BorshDeserialize, Option<Collection>: BorshDeserialize, Option<Uses>: BorshDeserialize, Option<CollectionDetails>: BorshDeserialize, Option<Pubkey>: BorshDeserialize, Option<u8>: BorshDeserialize, Option<PrintSupply>: BorshDeserialize,
source§impl PartialEq for CreateArgs
impl PartialEq for CreateArgs
source§fn eq(&self, other: &CreateArgs) -> bool
fn eq(&self, other: &CreateArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CreateArgs
impl StructuralEq for CreateArgs
impl StructuralPartialEq for CreateArgs
Auto Trait Implementations§
impl RefUnwindSafe for CreateArgs
impl Send for CreateArgs
impl Sync for CreateArgs
impl Unpin for CreateArgs
impl UnwindSafe for CreateArgs
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more