Struct mpl_token_metadata::instruction::builders::CreateBuilder
source · pub struct CreateBuilder {
pub metadata: Option<Pubkey>,
pub master_edition: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub authority: Option<Pubkey>,
pub payer: Option<Pubkey>,
pub update_authority: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub sysvar_instructions: Option<Pubkey>,
pub spl_token_program: Option<Pubkey>,
pub initialize_mint: Option<bool>,
pub update_authority_as_signer: Option<bool>,
}
Fields§
§metadata: Option<Pubkey>
§master_edition: Option<Pubkey>
§mint: Option<Pubkey>
§payer: Option<Pubkey>
§system_program: Option<Pubkey>
§sysvar_instructions: Option<Pubkey>
§spl_token_program: Option<Pubkey>
§initialize_mint: Option<bool>
Implementations§
source§impl CreateBuilder
impl CreateBuilder
pub fn new() -> Box<CreateBuilder>
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn master_edition(&mut self, master_edition: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: 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 initialize_mint(&mut self, initialize_mint: bool) -> &mut Self
pub fn build(&mut self, args: CreateArgs) -> Result<Box<Create>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for CreateBuilder
impl Send for CreateBuilder
impl Sync for CreateBuilder
impl Unpin for CreateBuilder
impl UnwindSafe for CreateBuilder
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