pub struct PositionIncreased {
pub rev: u64,
pub market_token: Pubkey,
pub report: IncreasePositionReport<u128, i128>,
}Expand description
Position increased event.
Fields§
§rev: u64Revision.
market_token: PubkeyMarket token.
report: IncreasePositionReport<u128, i128>Report.
Trait Implementations§
Source§impl BorshDeserialize for PositionIncreased
impl BorshDeserialize for PositionIncreased
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§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.
Source§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 PositionIncreasedwhere
u64: BorshSerialize,
Pubkey: BorshSerialize,
IncreasePositionReport<u128, i128>: BorshSerialize,
impl BorshSerialize for PositionIncreasedwhere
u64: BorshSerialize,
Pubkey: BorshSerialize,
IncreasePositionReport<u128, i128>: BorshSerialize,
Source§impl Debug for PositionIncreased
impl Debug for PositionIncreased
Source§impl Discriminator for PositionIncreased
impl Discriminator for PositionIncreased
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
Source§impl Event for PositionIncreased
impl Event for PositionIncreased
Source§fn emit_cpi_with_space(
&self,
event_authority: AccountInfo<'_>,
event_authority_bump: u8,
space: usize,
) -> Result<()>
fn emit_cpi_with_space( &self, event_authority: AccountInfo<'_>, event_authority_bump: u8, space: usize, ) -> Result<()>
Emit this event through CPI. This is a manual implementation of
emit_cpi!.Source§impl InitSpace for PositionIncreased
impl InitSpace for PositionIncreased
Source§const INIT_SPACE: usize
const INIT_SPACE: usize
Init Space.
Auto Trait Implementations§
impl Freeze for PositionIncreased
impl RefUnwindSafe for PositionIncreased
impl Send for PositionIncreased
impl Sync for PositionIncreased
impl Unpin for PositionIncreased
impl UnsafeUnpin for PositionIncreased
impl UnwindSafe for PositionIncreased
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