pub struct QuoteData {
pub pool: Pool,
pub vault_a: Vault,
pub vault_b: Vault,
pub pool_vault_a_lp_token: TokenAccount,
pub pool_vault_b_lp_token: TokenAccount,
pub vault_a_lp_mint: Mint,
pub vault_b_lp_mint: Mint,
pub vault_a_token: TokenAccount,
pub vault_b_token: TokenAccount,
pub clock: Clock,
pub stake_data: HashMap<Pubkey, Vec<u8>>,
}Fields§
§pool: PoolPool state to swap
vault_a: VaultVault state of vault A
vault_b: VaultVault state of vault B
pool_vault_a_lp_token: TokenAccountPool vault A LP token
pool_vault_b_lp_token: TokenAccountPool vault B LP token
vault_a_lp_mint: MintLp mint of vault A
vault_b_lp_mint: MintLp mint of vault B
vault_a_token: TokenAccountToken account of vault A
vault_b_token: TokenAccountToken account of vault B
clock: ClockClock account
stake_data: HashMap<Pubkey, Vec<u8>>Stake account data. Only for depeg pools
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuoteData
impl RefUnwindSafe for QuoteData
impl Send for QuoteData
impl Sync for QuoteData
impl Unpin for QuoteData
impl UnwindSafe for QuoteData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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