pub struct CreateMetadataAccountBuilder {
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 CreateMetadataAccountBuilder
impl CreateMetadataAccountBuilder
pub fn new() -> Box<CreateMetadataAccountBuilder>
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<CreateMetadataAccount>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for CreateMetadataAccountBuilder
impl Send for CreateMetadataAccountBuilder
impl Sync for CreateMetadataAccountBuilder
impl Unpin for CreateMetadataAccountBuilder
impl UnwindSafe for CreateMetadataAccountBuilder
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