pub struct DirectFillMarket {
pub mints: [Address; 2],
pub accounts: Vec<DirectFillAccount>,
}Expand description
A venue’s account run and the mint ordering its direction byte indexes into.
Supplied by the caller because nothing can derive it: a router’s IDL declares only the
accounts the ROUTER touches, and a venue’s run reaches the program as remaining_accounts
it forwards to the CPI untouched. The only sources are the venue itself, or a real
instruction that used it. Carrying it as a parameter keeps adding a venue a matter of
configuration, and makes a venue that migrates its accounts the caller’s line to change.
Fields§
§mints: [Address; 2]The pair this market quotes, in the VENUE’s own ordering — a direction byte is an index
into it, so unlike MintPair the order is load-bearing and must not be normalized.
accounts: Vec<DirectFillAccount>The venue’s account run, in the order its own program expects.
Trait Implementations§
Source§impl Clone for DirectFillMarket
impl Clone for DirectFillMarket
Source§fn clone(&self) -> DirectFillMarket
fn clone(&self) -> DirectFillMarket
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 DirectFillMarket
impl Debug for DirectFillMarket
Source§impl<'de> Deserialize<'de> for DirectFillMarket
impl<'de> Deserialize<'de> for DirectFillMarket
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
impl Eq for DirectFillMarket
Source§impl PartialEq for DirectFillMarket
impl PartialEq for DirectFillMarket
Source§impl Serialize for DirectFillMarket
impl Serialize for DirectFillMarket
impl StructuralPartialEq for DirectFillMarket
Auto Trait Implementations§
impl Freeze for DirectFillMarket
impl RefUnwindSafe for DirectFillMarket
impl Send for DirectFillMarket
impl Sync for DirectFillMarket
impl Unpin for DirectFillMarket
impl UnsafeUnpin for DirectFillMarket
impl UnwindSafe for DirectFillMarket
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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