pub struct Create {
pub asset: Pubkey,
pub vault: Pubkey,
pub mint: Pubkey,
pub metadata: Pubkey,
pub update_authority: (Pubkey, bool),
pub collection: Option<Pubkey>,
pub payer: Pubkey,
pub system_program: Pubkey,
pub nifty_asset_program: Pubkey,
}Expand description
Accounts.
Fields§
§asset: PubkeyAsset account of the mint (pda of ['nifty::bridge::asset', mint pubkey])
vault: PubkeyBridge account for the asset (pda of ['nifty::bridge::vault', mint pubkey])
mint: PubkeyMint account of the token
metadata: PubkeyMetadata account of the collection
Update authority of the metadata
collection: Option<Pubkey>Asset account of the collection (pda of ['nifty::bridge::asset', collection mint pubkey])
payer: PubkeyThe account paying for the storage fees
system_program: PubkeySystem program
nifty_asset_program: PubkeyNifty Asset program
Implementations§
Source§impl Create
impl Create
pub fn instruction(&self) -> Instruction
pub fn instruction_with_remaining_accounts( &self, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for Create
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnwindSafe for Create
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more