pub struct CreateMetadataAccountV2Builder {
pub metadata: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub mint_authority: Option<Pubkey>,
pub payer: Option<Pubkey>,
pub update_authority: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub rent: Option<Pubkey>,
}
Fields§
§metadata: Option<Pubkey>
§mint: Option<Pubkey>
§payer: Option<Pubkey>
§system_program: Option<Pubkey>
§rent: Option<Pubkey>
Implementations§
source§impl CreateMetadataAccountV2Builder
impl CreateMetadataAccountV2Builder
pub fn new() -> Box<CreateMetadataAccountV2Builder>
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: 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 rent(&mut self, rent: Pubkey) -> &mut Self
pub fn build(&mut self) -> Result<Box<CreateMetadataAccountV2>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for CreateMetadataAccountV2Builder
impl Send for CreateMetadataAccountV2Builder
impl Sync for CreateMetadataAccountV2Builder
impl Unpin for CreateMetadataAccountV2Builder
impl UnwindSafe for CreateMetadataAccountV2Builder
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