Struct mpl_testing_utils::utils::Metadata
source · [−]Fields
mint: Keypairpubkey: Pubkeytoken: KeypairImplementations
sourceimpl Metadata
impl Metadata
pub fn new() -> Self
pub async fn get_data(&self, context: &mut ProgramTestContext) -> Metadata
pub async fn create(
&self,
context: &mut ProgramTestContext,
name: String,
symbol: String,
uri: String,
creators: Option<Vec<Creator>>,
seller_fee_basis_points: u16,
is_mutable: bool,
amount: u64
) -> Result<(), BanksClientError>
pub async fn create_v2(
&self,
context: &mut ProgramTestContext,
name: String,
symbol: String,
uri: String,
creators: Option<Vec<Creator>>,
seller_fee_basis_points: u16,
is_mutable: bool,
collection: Option<Collection>,
uses: Option<Uses>
) -> Result<(), BanksClientError>
pub async fn update_primary_sale_happened_via_token(
&self,
context: &mut ProgramTestContext
) -> Result<(), BanksClientError>
pub async fn update(
&self,
context: &mut ProgramTestContext,
name: String,
symbol: String,
uri: String,
creators: Option<Vec<Creator>>,
seller_fee_basis_points: u16
) -> Result<(), BanksClientError>
pub async fn update_v2(
&self,
context: &mut ProgramTestContext,
name: String,
symbol: String,
uri: String,
creators: Option<Vec<Creator>>,
seller_fee_basis_points: u16,
is_mutable: bool,
collection: Option<Collection>,
uses: Option<Uses>
) -> Result<(), BanksClientError>
pub async fn verify_collection(
&self,
context: &mut ProgramTestContext,
collection: Pubkey,
collection_authority: Keypair,
collection_mint: Pubkey,
collection_master_edition_account: Pubkey,
collection_authority_record: Option<Pubkey>
) -> Result<(), BanksClientError>
pub async fn unverify_collection(
&self,
context: &mut ProgramTestContext,
collection: Pubkey,
collection_authority: Keypair,
collection_mint: Pubkey,
collection_master_edition_account: Pubkey,
collection_authority_record: Option<Pubkey>
) -> Result<(), BanksClientError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more