pub struct TransferAccounts<'a> {
pub existing_recipient: AccountInfo<'a>,
pub new_recipient: AccountInfo<'a>,
pub new_recipient_tokens: AccountInfo<'a>,
pub metadata: AccountInfo<'a>,
pub escrow_tokens: AccountInfo<'a>,
pub mint: AccountInfo<'a>,
pub rent: AccountInfo<'a>,
pub token_program: AccountInfo<'a>,
pub associated_token_program: AccountInfo<'a>,
pub system_program: AccountInfo<'a>,
}Expand description
Accounts needed for updating stream recipient
Fields§
§existing_recipient: AccountInfo<'a>Wallet address of the existing recipient
new_recipient: AccountInfo<'a>New stream beneficiary
new_recipient_tokens: AccountInfo<'a>New stream beneficiary’s token account.
If not initialized, it will be created and
existing_recipient is the fee payer
metadata: AccountInfo<'a>The account holding the stream metadata
escrow_tokens: AccountInfo<'a>The escrow account holding the stream funds
mint: AccountInfo<'a>The SPL token mint account
rent: AccountInfo<'a>Rent account
token_program: AccountInfo<'a>The SPL program needed in case associated account for the new recipients is being created.
associated_token_program: AccountInfo<'a>The Associated Token program needed in case associated account for the new recipients is being created.
system_program: AccountInfo<'a>The Solana system program needed in case associated account for the new recipients is being created.
Auto Trait Implementations§
impl<'a> Freeze for TransferAccounts<'a>
impl<'a> !RefUnwindSafe for TransferAccounts<'a>
impl<'a> !Send for TransferAccounts<'a>
impl<'a> !Sync for TransferAccounts<'a>
impl<'a> Unpin for TransferAccounts<'a>
impl<'a> !UnwindSafe for TransferAccounts<'a>
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