pub struct VaultPosition {
pub position_key: Pubkey,
pub lower_tick: i32,
pub upper_tick: i32,
/* private fields */
}Fields§
§position_key: PubkeyThe underlying CLP position.
lower_tick: i32The address of the lower TickArray
upper_tick: i32The address of the upper TickArray
Trait Implementations§
Source§impl BorshDeserialize for VaultPositionwhere
Pubkey: BorshDeserialize,
i32: BorshDeserialize,
[u8; 12]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
impl BorshDeserialize for VaultPositionwhere
Pubkey: BorshDeserialize,
i32: BorshDeserialize,
[u8; 12]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Source§impl BorshSerialize for VaultPositionwhere
Pubkey: BorshSerialize,
i32: BorshSerialize,
[u8; 12]: BorshSerialize,
[u8; 32]: BorshSerialize,
impl BorshSerialize for VaultPositionwhere
Pubkey: BorshSerialize,
i32: BorshSerialize,
[u8; 12]: BorshSerialize,
[u8; 32]: BorshSerialize,
Source§impl Clone for VaultPosition
impl Clone for VaultPosition
Source§fn clone(&self) -> VaultPosition
fn clone(&self) -> VaultPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for VaultPosition
impl Default for VaultPosition
Source§fn default() -> VaultPosition
fn default() -> VaultPosition
Returns the “default value” for a type. Read more
impl Copy for VaultPosition
Auto Trait Implementations§
impl Freeze for VaultPosition
impl RefUnwindSafe for VaultPosition
impl Send for VaultPosition
impl Sync for VaultPosition
impl Unpin for VaultPosition
impl UnwindSafe for VaultPosition
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