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 Freeze for CreateMetadataAccountV2Builder
impl RefUnwindSafe for CreateMetadataAccountV2Builder
impl Send for CreateMetadataAccountV2Builder
impl Sync for CreateMetadataAccountV2Builder
impl Unpin for CreateMetadataAccountV2Builder
impl UnsafeUnpin 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
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