pub struct RepayDeal<'info> {Show 21 fields
pub signer: AccountInfo<'info>,
pub borrower: AccountInfo<'info>,
pub market_admins: AccountInfo<'info>,
pub deal: AccountInfo<'info>,
pub global_market_state: AccountInfo<'info>,
pub borrower_token_account: AccountInfo<'info>,
pub liquidity_pool_token_account: AccountInfo<'info>,
pub treasury_pool_token_account: AccountInfo<'info>,
pub signing_authority: AccountInfo<'info>,
pub credix_pass: AccountInfo<'info>,
pub deal_token_account: AccountInfo<'info>,
pub repayment_schedule: AccountInfo<'info>,
pub base_token_mint: AccountInfo<'info>,
pub deal_tranches: AccountInfo<'info>,
pub credix_treasury: AccountInfo<'info>,
pub credix_treasury_token_account: AccountInfo<'info>,
pub program_state: AccountInfo<'info>,
pub variable_interest_rates: AccountInfo<'info>,
pub associated_token_program: AccountInfo<'info>,
pub token_program: AccountInfo<'info>,
pub system_program: AccountInfo<'info>,
}Expand description
Generated CPI struct of the accounts for RepayDeal.
Fields§
§signer: AccountInfo<'info>§borrower: AccountInfo<'info>§market_admins: AccountInfo<'info>§deal: AccountInfo<'info>§global_market_state: AccountInfo<'info>§borrower_token_account: AccountInfo<'info>§liquidity_pool_token_account: AccountInfo<'info>§treasury_pool_token_account: AccountInfo<'info>§credix_pass: AccountInfo<'info>§deal_token_account: AccountInfo<'info>§repayment_schedule: AccountInfo<'info>§base_token_mint: AccountInfo<'info>§deal_tranches: AccountInfo<'info>§credix_treasury: AccountInfo<'info>§credix_treasury_token_account: AccountInfo<'info>§program_state: AccountInfo<'info>§variable_interest_rates: AccountInfo<'info>§associated_token_program: AccountInfo<'info>§token_program: AccountInfo<'info>§system_program: AccountInfo<'info>Trait Implementations§
Source§impl<'info> ToAccountInfos<'info> for RepayDeal<'info>
impl<'info> ToAccountInfos<'info> for RepayDeal<'info>
fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
Source§impl<'info> ToAccountMetas for RepayDeal<'info>
impl<'info> ToAccountMetas for RepayDeal<'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 RepayDeal<'info>
impl<'info> !RefUnwindSafe for RepayDeal<'info>
impl<'info> !Send for RepayDeal<'info>
impl<'info> !Sync for RepayDeal<'info>
impl<'info> Unpin for RepayDeal<'info>
impl<'info> !UnwindSafe for RepayDeal<'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