pub struct SwapPool {
pub seed: [u8; 32],
pub token_account_a: Pubkey,
pub token_account_b: Pubkey,
pub balance_a: u64,
pub balance_b: u64,
pub lp_mint: Pubkey,
pub lp_fee_rate: u32,
pub creator_fee: Option<CreatorFee>,
}Fields§
§seed: [u8; 32]§token_account_a: Pubkey§token_account_b: Pubkey§balance_a: u64§balance_b: u64§lp_mint: Pubkey§lp_fee_rate: u32§creator_fee: Option<CreatorFee>Implementations§
Trait Implementations§
impl StructuralPartialEq for SwapPool
Auto Trait Implementations§
impl Freeze for SwapPool
impl RefUnwindSafe for SwapPool
impl Send for SwapPool
impl Sync for SwapPool
impl Unpin for SwapPool
impl UnsafeUnpin for SwapPool
impl UnwindSafe for SwapPool
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