#[repr(C)]
pub struct CallbackInfo { pub order_tag: OrderTag, pub owner: Pubkey, pub fill_account: Pubkey, pub out_account: Pubkey, pub adapter_account_key: Pubkey, pub order_submitted: [u8; 8], pub flags: CallbackFlags, /* private fields */ }
Expand description

The CallbackInfo is information about an order that is stored in the Event Queue used to manage order metadata

Fields

order_tag: OrderTag

The order tag is generated by the program when submitting orders to the book Used to seed and track PDAs such as TermLoan

owner: Pubkey

authority who signed to place the order and is permitted to cancel the order. for margin orders, this is the owner of the MarginUser, which is the margin account PDA from the margin program.

fill_account: Pubkey

the account that will be assigned ownership of any output resulting from a fill. for margin orders this is the margin user. for auto-stake, this account will be set as the split ticket owner. otherwise this is the token account to be deposited into.

out_account: Pubkey

margin user or token account to be deposited into on out the account that will be assigned ownership of any output resulting from an out. for margin orders this is the margin user. otherwise this is the token account to be deposited into.

adapter_account_key: Pubkey

Pubkey of the account that will receive the event information

order_submitted: [u8; 8]

The unix timestamp for the slot that the order entered the aaob

flags: CallbackFlags

configuration used by callback execution

Implementations

Trait Implementations

The callback identity object used to detect self trading
Retrives a reference to the callback identity object from the parent object
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
If this function returns true, then it must be valid to reinterpret bits as &Self. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.