Struct mpl_token_metadata::instruction::builders::MintBuilder
source · pub struct MintBuilder {Show 15 fields
pub token: Option<Pubkey>,
pub token_owner: Option<Pubkey>,
pub metadata: Option<Pubkey>,
pub master_edition: Option<Pubkey>,
pub token_record: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub authority: Option<Pubkey>,
pub delegate_record: Option<Pubkey>,
pub payer: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub sysvar_instructions: Option<Pubkey>,
pub spl_token_program: Option<Pubkey>,
pub spl_ata_program: Option<Pubkey>,
pub authorization_rules_program: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
}
Fields§
§token: Option<Pubkey>
§token_owner: Option<Pubkey>
§metadata: Option<Pubkey>
§master_edition: Option<Pubkey>
§token_record: Option<Pubkey>
§mint: Option<Pubkey>
§delegate_record: Option<Pubkey>
§payer: Option<Pubkey>
§system_program: Option<Pubkey>
§sysvar_instructions: Option<Pubkey>
§spl_token_program: Option<Pubkey>
§spl_ata_program: Option<Pubkey>
Implementations§
source§impl MintBuilder
impl MintBuilder
pub fn new() -> Box<MintBuilder>
pub fn token(&mut self, token: Pubkey) -> &mut Self
pub fn token_owner(&mut self, token_owner: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn master_edition(&mut self, master_edition: Pubkey) -> &mut Self
pub fn token_record(&mut self, token_record: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn delegate_record(&mut self, delegate_record: Pubkey) -> &mut Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn spl_token_program(&mut self, spl_token_program: Pubkey) -> &mut Self
pub fn spl_ata_program(&mut self, spl_ata_program: Pubkey) -> &mut Self
pub fn build(&mut self, args: MintArgs) -> Result<Box<Mint>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for MintBuilder
impl Send for MintBuilder
impl Sync for MintBuilder
impl Unpin for MintBuilder
impl UnwindSafe for MintBuilder
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