pub struct Metadata {
pub mint: Keypair,
pub pubkey: Pubkey,
pub token: Keypair,
}Fields§
§mint: Keypair§pubkey: Pubkey§token: KeypairImplementations§
Source§impl 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 Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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