pub struct EventOtherState {
pub rev: u64,
pub trade_count: u64,
pub long_token_balance: u64,
pub short_token_balance: u64,
pub funding_factor_per_second: i128,
/* private fields */
}
Expand description
Market State.
Fields§
§rev: u64
Revision.
trade_count: u64
Trade count.
long_token_balance: u64
Long token balance.
short_token_balance: u64
Short token balance.
funding_factor_per_second: i128
Funding factor per second.
Trait Implementations§
Source§impl BorshDeserialize for EventOtherState
impl BorshDeserialize for EventOtherState
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for EventOtherState
impl BorshSerialize for EventOtherState
Source§impl Debug for EventOtherState
impl Debug for EventOtherState
Source§impl<'de> Deserialize<'de> for EventOtherState
impl<'de> Deserialize<'de> for EventOtherState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EventOtherState
impl Serialize for EventOtherState
Source§impl Space for EventOtherState
impl Space for EventOtherState
const INIT_SPACE: usize = 320usize
Auto Trait Implementations§
impl Freeze for EventOtherState
impl RefUnwindSafe for EventOtherState
impl Send for EventOtherState
impl Sync for EventOtherState
impl Unpin for EventOtherState
impl UnwindSafe for EventOtherState
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