pub struct InitializeAccounts<'a> {
pub sender: AccountInfo<'a>,
pub sender_tokens: AccountInfo<'a>,
pub recipient: AccountInfo<'a>,
pub 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
The account-holding struct for the stream initialization instruction
Fields§
§sender: AccountInfo<'a>The main wallet address of the initializer.
sender_tokens: AccountInfo<'a>The associated token account address of sender.
recipient: AccountInfo<'a>The main wallet address of the recipient.
recipient_tokens: AccountInfo<'a>The associated token account address of recipient.
(Can be either empty or initialized).
metadata: AccountInfo<'a>The account holding the stream metadata. Expects empty (non-initialized) account.
escrow_tokens: AccountInfo<'a>The escrow account holding the stream funds. Expects empty (non-initialized) account.
mint: AccountInfo<'a>The SPL token mint account
rent: AccountInfo<'a>The Rent Sysvar account
token_program: AccountInfo<'a>The SPL program needed in case an associated account for the new recipient is being created.
associated_token_program: AccountInfo<'a>The Associated Token program needed in case associated account for the new recipient is being created.
system_program: AccountInfo<'a>The Solana system program
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InitializeAccounts<'a>
impl<'a> !RefUnwindSafe for InitializeAccounts<'a>
impl<'a> !Send for InitializeAccounts<'a>
impl<'a> !Sync for InitializeAccounts<'a>
impl<'a> Unpin for InitializeAccounts<'a>
impl<'a> UnsafeUnpin for InitializeAccounts<'a>
impl<'a> !UnwindSafe for InitializeAccounts<'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