pub struct RemoveBuilder { /* private fields */ }Expand description
Instruction builder for Remove.
§Accounts:
[writable, signer]asset[signer]authority[optional]group[writable]recipient
Implementations§
Source§impl RemoveBuilder
impl RemoveBuilder
pub fn new() -> Self
The authority of the asset
Sourcepub fn group(&mut self, group: Option<Pubkey>) -> &mut Self
pub fn group(&mut self, group: Option<Pubkey>) -> &mut Self
[optional account]
The asset defining the group, if applicable
Sourcepub fn recipient(&mut self, recipient: Pubkey) -> &mut Self
pub fn recipient(&mut self, recipient: Pubkey) -> &mut Self
The account receiving refunded rent
pub fn extension_type(&mut self, extension_type: ExtensionType) -> &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 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 RemoveBuilder
impl Default for RemoveBuilder
Source§fn default() -> RemoveBuilder
fn default() -> RemoveBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RemoveBuilder
impl RefUnwindSafe for RemoveBuilder
impl Send for RemoveBuilder
impl Sync for RemoveBuilder
impl Unpin for RemoveBuilder
impl UnsafeUnpin for RemoveBuilder
impl UnwindSafe for RemoveBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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