pub struct TokenUpdateBuilder { /* private fields */ }Expand description
Instruction builder for TokenUpdate.
§Accounts:
[writable, signer]authority[writable]bonding_curve[]config
Implementations§
Source§impl TokenUpdateBuilder
impl TokenUpdateBuilder
pub fn new() -> Self
The authority of the token
Sourcepub fn bonding_curve(&mut self, bonding_curve: Pubkey) -> &mut Self
pub fn bonding_curve(&mut self, bonding_curve: Pubkey) -> &mut Self
The bonding curve account
pub fn update(&mut self, update: TokenUpdateType) -> &mut 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 additional 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 Clone for TokenUpdateBuilder
impl Clone for TokenUpdateBuilder
Source§fn clone(&self) -> TokenUpdateBuilder
fn clone(&self) -> TokenUpdateBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenUpdateBuilder
impl Debug for TokenUpdateBuilder
Source§impl Default for TokenUpdateBuilder
impl Default for TokenUpdateBuilder
Source§fn default() -> TokenUpdateBuilder
fn default() -> TokenUpdateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokenUpdateBuilder
impl RefUnwindSafe for TokenUpdateBuilder
impl Send for TokenUpdateBuilder
impl Sync for TokenUpdateBuilder
impl Unpin for TokenUpdateBuilder
impl UnwindSafe for TokenUpdateBuilder
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