pub struct OrderUpdated {
pub is_create: bool,
pub id: u64,
pub ts: i64,
pub slot: u64,
pub store: Pubkey,
pub order: Pubkey,
pub market_token: Pubkey,
pub owner: Pubkey,
pub params: OrderParamsForEvent,
}Expand description
An event indicating that an order is created or updated.
§Notes
- For compatibility reasons, the
OrderUpdatedevent is not emitted by the (deprecated)create_orderandupdate_orderinstructions. As a result, there is no guarantee that every order will have correspondingOrderUpdatedevents.
Fields§
§is_create: boolWhether it is a create event.
id: u64Action id.
ts: i64Timestamp.
slot: u64Slot.
store: PubkeyStore.
order: PubkeyOrder.
market_token: PubkeyMarket token.
owner: PubkeyOwner.
params: OrderParamsForEventParameters.
Trait Implementations§
Source§impl BorshDeserialize for OrderUpdated
impl BorshDeserialize for OrderUpdated
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 OrderUpdated
impl BorshSerialize for OrderUpdated
Source§impl Clone for OrderUpdated
impl Clone for OrderUpdated
Source§fn clone(&self) -> OrderUpdated
fn clone(&self) -> OrderUpdated
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderUpdated
impl Debug for OrderUpdated
Source§impl Discriminator for OrderUpdated
impl Discriminator for OrderUpdated
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
Source§impl Event for OrderUpdated
impl Event for OrderUpdated
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 OrderUpdated
impl InitSpace for OrderUpdated
Source§const INIT_SPACE: usize = <Self as Space>::INIT_SPACE
const INIT_SPACE: usize = <Self as Space>::INIT_SPACE
Init Space.
Source§impl Space for OrderUpdated
impl Space for OrderUpdated
const INIT_SPACE: usize
Auto Trait Implementations§
impl Freeze for OrderUpdated
impl RefUnwindSafe for OrderUpdated
impl Send for OrderUpdated
impl Sync for OrderUpdated
impl Unpin for OrderUpdated
impl UnsafeUnpin for OrderUpdated
impl UnwindSafe for OrderUpdated
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