Struct mpl_token_metadata::instruction::builders::TransferBuilder
source · pub struct TransferBuilder {Show 17 fields
pub token: Option<Pubkey>,
pub token_owner: Option<Pubkey>,
pub destination: Option<Pubkey>,
pub destination_owner: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub metadata: Option<Pubkey>,
pub edition: Option<Pubkey>,
pub owner_token_record: Option<Pubkey>,
pub destination_token_record: Option<Pubkey>,
pub authority: 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>
§destination: Option<Pubkey>
§destination_owner: Option<Pubkey>
§mint: Option<Pubkey>
§metadata: Option<Pubkey>
§edition: Option<Pubkey>
§owner_token_record: Option<Pubkey>
§destination_token_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 TransferBuilder
impl TransferBuilder
pub fn new() -> Box<TransferBuilder>
pub fn token(&mut self, token: Pubkey) -> &mut Self
pub fn token_owner(&mut self, token_owner: Pubkey) -> &mut Self
pub fn destination(&mut self, destination: Pubkey) -> &mut Self
pub fn destination_owner(&mut self, destination_owner: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn edition(&mut self, edition: Pubkey) -> &mut Self
pub fn owner_token_record(&mut self, owner_token_record: Pubkey) -> &mut Self
pub fn destination_token_record( &mut self, destination_token_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: TransferArgs ) -> Result<Box<Transfer>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for TransferBuilder
impl Send for TransferBuilder
impl Sync for TransferBuilder
impl Unpin for TransferBuilder
impl UnwindSafe for TransferBuilder
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