#[repr(C)]
pub struct MasterEditionV1 { pub key: Key, pub supply: u64, pub max_supply: Option<u64>, pub printing_mint: Pubkey, pub one_time_printing_authorization_mint: Pubkey, }

Fields

key: Keysupply: u64max_supply: Option<u64>printing_mint: Pubkey

Can be used to mint tokens that give one-time permission to mint a single limited edition.

one_time_printing_authorization_mint: Pubkey

If you don’t know how many printing tokens you are going to need, but you do know you are going to need some amount in the future, you can use a token from this mint. Coming back to token metadata with one of these tokens allows you to mint (one time) any number of printing tokens you want. This is used for instance by Auction Manager with participation NFTs, where we dont know how many people will bid and need participation printing tokens to redeem, so we give it ONE of these tokens to use after the auction is over, because when the auction begins we just dont know how many printing tokens we will need, but at the end we will. At the end it then burns this token with token-metadata to get the printing tokens it needs to give to bidders. Each bidder then redeems a printing token to get their limited editions.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Serialize this instance into a vector of bytes.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.