Struct mpl_token_metadata::instruction::builders::UtilizeBuilder
source · pub struct UtilizeBuilder {
pub metadata: Option<Pubkey>,
pub token_account: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub use_authority: Option<Pubkey>,
pub owner: Option<Pubkey>,
pub token_program: Option<Pubkey>,
pub ata_program: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub rent: Option<Pubkey>,
pub use_authority_record: Option<Pubkey>,
pub burner: Option<Pubkey>,
}
Fields§
§metadata: Option<Pubkey>
§token_account: Option<Pubkey>
§mint: Option<Pubkey>
§owner: Option<Pubkey>
§token_program: Option<Pubkey>
§ata_program: Option<Pubkey>
§system_program: Option<Pubkey>
§rent: Option<Pubkey>
§burner: Option<Pubkey>
Implementations§
source§impl UtilizeBuilder
impl UtilizeBuilder
pub fn new() -> Box<UtilizeBuilder>
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn owner(&mut self, owner: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn ata_program(&mut self, ata_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn rent(&mut self, rent: Pubkey) -> &mut Self
pub fn burner(&mut self, burner: Pubkey) -> &mut Self
pub fn build( &mut self, args: UtilizeArgs ) -> Result<Box<Utilize>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for UtilizeBuilder
impl Send for UtilizeBuilder
impl Sync for UtilizeBuilder
impl Unpin for UtilizeBuilder
impl UnwindSafe for UtilizeBuilder
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