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: bool§id: u64§ts: i64§slot: u64§store: Pubkey§order: Pubkey§market_token: Pubkey§owner: Pubkey§params: OrderParamsForEventTrait 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 · 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
impl Copy for OrderUpdated
Auto Trait Implementations§
impl Freeze for OrderUpdated
impl RefUnwindSafe for OrderUpdated
impl Send for OrderUpdated
impl Sync for OrderUpdated
impl Unpin 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