pub struct EventClocks {
pub rev: u64,
pub price_impact_distribution: i64,
pub borrowing: i64,
pub funding: i64,
pub adl_for_long: i64,
pub adl_for_short: i64,
/* private fields */
}
Expand description
Market clocks.
Fields§
§rev: u64
Revision.
price_impact_distribution: i64
Price impact distribution clock.
borrowing: i64
Borrowing clock.
funding: i64
Funding clock.
adl_for_long: i64
ADL updated clock for long.
adl_for_short: i64
ADL updated clock for short.
Trait Implementations§
Source§impl BorshDeserialize for EventClocks
impl BorshDeserialize for EventClocks
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 EventClocks
impl BorshSerialize for EventClocks
Source§impl Debug for EventClocks
impl Debug for EventClocks
Source§impl<'de> Deserialize<'de> for EventClocks
impl<'de> Deserialize<'de> for EventClocks
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 EventClocks
impl Serialize for EventClocks
Source§impl Space for EventClocks
impl Space for EventClocks
const INIT_SPACE: usize = 80usize
Auto Trait Implementations§
impl Freeze for EventClocks
impl RefUnwindSafe for EventClocks
impl Send for EventClocks
impl Sync for EventClocks
impl Unpin for EventClocks
impl UnwindSafe for EventClocks
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