Struct SetTokenBadgeAttributeBuilder
pub struct SetTokenBadgeAttributeBuilder { /* private fields */ }Expand description
Instruction builder for SetTokenBadgeAttribute.
§Accounts:
[]whirlpools_config[]whirlpools_config_extension[signer]token_badge_authority[]token_mint[writable]token_badge
Implementations§
§impl SetTokenBadgeAttributeBuilder
impl SetTokenBadgeAttributeBuilder
pub fn new() -> SetTokenBadgeAttributeBuilder
pub fn whirlpools_config( &mut self, whirlpools_config: Address, ) -> &mut SetTokenBadgeAttributeBuilder
pub fn whirlpools_config_extension( &mut self, whirlpools_config_extension: Address, ) -> &mut SetTokenBadgeAttributeBuilder
pub fn token_mint( &mut self, token_mint: Address, ) -> &mut SetTokenBadgeAttributeBuilder
pub fn token_badge( &mut self, token_badge: Address, ) -> &mut SetTokenBadgeAttributeBuilder
pub fn attribute( &mut self, attribute: TokenBadgeAttribute, ) -> &mut SetTokenBadgeAttributeBuilder
pub fn add_remaining_account(
&mut self,
account: AccountMeta,
) -> &mut SetTokenBadgeAttributeBuilder
pub fn add_remaining_account( &mut self, account: AccountMeta, ) -> &mut SetTokenBadgeAttributeBuilder
Add an additional account to the instruction.
pub fn add_remaining_accounts(
&mut self,
accounts: &[AccountMeta],
) -> &mut SetTokenBadgeAttributeBuilder
pub fn add_remaining_accounts( &mut self, accounts: &[AccountMeta], ) -> &mut SetTokenBadgeAttributeBuilder
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
§impl Clone for SetTokenBadgeAttributeBuilder
impl Clone for SetTokenBadgeAttributeBuilder
§fn clone(&self) -> SetTokenBadgeAttributeBuilder
fn clone(&self) -> SetTokenBadgeAttributeBuilder
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 more§impl Debug for SetTokenBadgeAttributeBuilder
impl Debug for SetTokenBadgeAttributeBuilder
§impl Default for SetTokenBadgeAttributeBuilder
impl Default for SetTokenBadgeAttributeBuilder
§fn default() -> SetTokenBadgeAttributeBuilder
fn default() -> SetTokenBadgeAttributeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetTokenBadgeAttributeBuilder
impl RefUnwindSafe for SetTokenBadgeAttributeBuilder
impl Send for SetTokenBadgeAttributeBuilder
impl Sync for SetTokenBadgeAttributeBuilder
impl Unpin for SetTokenBadgeAttributeBuilder
impl UnwindSafe for SetTokenBadgeAttributeBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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