pub struct PuffMetadataBuilder { /* private fields */ }Expand description
Implementations§
Source§impl PuffMetadataBuilder
impl PuffMetadataBuilder
pub fn new() -> Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Default for PuffMetadataBuilder
impl Default for PuffMetadataBuilder
Source§fn default() -> PuffMetadataBuilder
fn default() -> PuffMetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PuffMetadataBuilder
impl RefUnwindSafe for PuffMetadataBuilder
impl Send for PuffMetadataBuilder
impl Sync for PuffMetadataBuilder
impl Unpin for PuffMetadataBuilder
impl UnsafeUnpin for PuffMetadataBuilder
impl UnwindSafe for PuffMetadataBuilder
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