pub struct Position {
pub bids_base_lots: i64,
pub asks_base_lots: i64,
pub base_free_native: u64,
pub quote_free_native: u64,
pub locked_maker_fees: u64,
pub referrer_rebates_available: u64,
pub penalty_heap_count: u64,
pub maker_volume: u128,
pub taker_volume: u128,
pub bids_quote_lots: i64,
pub reserved: [u8; 64],
}Fields§
§bids_base_lots: i64§asks_base_lots: i64§base_free_native: u64§quote_free_native: u64§locked_maker_fees: u64§referrer_rebates_available: u64§penalty_heap_count: u64§maker_volume: u128§taker_volume: u128§bids_quote_lots: i64§reserved: [u8; 64]Trait Implementations§
Source§impl BorshDeserialize for Positionwhere
i64: BorshDeserialize,
u64: BorshDeserialize,
u128: BorshDeserialize,
[u8; 64]: BorshDeserialize,
impl BorshDeserialize for Positionwhere
i64: BorshDeserialize,
u64: BorshDeserialize,
u128: BorshDeserialize,
[u8; 64]: BorshDeserialize,
Source§impl BorshSerialize for Position
impl BorshSerialize for Position
impl Copy for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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