pub struct CancelSwap<'info> {Show 18 fields
pub authority: AccountInfo<'info>,
pub store: AccountInfo<'info>,
pub store_wallet: AccountInfo<'info>,
pub config: AccountInfo<'info>,
pub receiver: AccountInfo<'info>,
pub user: AccountInfo<'info>,
pub swap_in_token: AccountInfo<'info>,
pub swap_out_token: AccountInfo<'info>,
pub swap_in_token_receiver_vault: AccountInfo<'info>,
pub swap_out_token_receiver_vault: AccountInfo<'info>,
pub swap_in_token_escrow: AccountInfo<'info>,
pub swap_out_token_escrow: AccountInfo<'info>,
pub order: AccountInfo<'info>,
pub event_authority: AccountInfo<'info>,
pub store_program: AccountInfo<'info>,
pub token_program: AccountInfo<'info>,
pub associated_token_program: AccountInfo<'info>,
pub system_program: AccountInfo<'info>,
}Expand description
Generated CPI struct of the accounts for CancelSwap.
Fields§
Authority.
store: AccountInfo<'info>Store.
store_wallet: AccountInfo<'info>Store Wallet.
config: AccountInfo<'info>§receiver: AccountInfo<'info>Swap order owner (the receiver).
user: AccountInfo<'info>The user account for owner.
swap_in_token: AccountInfo<'info>Swap in token.
swap_out_token: AccountInfo<'info>Swap out token.
swap_in_token_receiver_vault: AccountInfo<'info>Swap in token receiver vault.
swap_out_token_receiver_vault: AccountInfo<'info>Swap out token receiver vault.
swap_in_token_escrow: AccountInfo<'info>The escrow account for swap in token.
swap_out_token_escrow: AccountInfo<'info>The escrow account for swap out token.
order: AccountInfo<'info>The order account.
Event authority.
store_program: AccountInfo<'info>Store program.
token_program: AccountInfo<'info>The token program.
associated_token_program: AccountInfo<'info>Associated token program.
system_program: AccountInfo<'info>The system program.
Trait Implementations§
Source§impl<'info> ToAccountInfos<'info> for CancelSwap<'info>
impl<'info> ToAccountInfos<'info> for CancelSwap<'info>
fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
Source§impl<'info> ToAccountMetas for CancelSwap<'info>
impl<'info> ToAccountMetas for CancelSwap<'info>
Source§fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
is_signer is given as an optional override for the signer meta field.
This covers the edge case when a program-derived-address needs to relay
a transaction from a client to another program but sign the transaction
before the relay. The client cannot mark the field as a signer, and so
we have to override the is_signer meta field given by the client.Auto Trait Implementations§
impl<'info> Freeze for CancelSwap<'info>
impl<'info> !RefUnwindSafe for CancelSwap<'info>
impl<'info> !Send for CancelSwap<'info>
impl<'info> !Sync for CancelSwap<'info>
impl<'info> Unpin for CancelSwap<'info>
impl<'info> !UnwindSafe for CancelSwap<'info>
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