pub struct CreateGroupedOrdersTxInfo {
pub context: TxContext,
pub grouping_type: LighterGroupingType,
pub orders: Vec<OrderInfo>,
pub attributes: L2TxAttributes,
}Expand description
CreateGroupedOrders (tx_type = 28): creates native OTO, OCO, or OTOCO relationships.
Orders are hashed individually and compressed in submission order. OTO and OTOCO put the parent first and submit reduce-only children with zero base amount.
Fields§
§context: TxContextCommon preamble fields.
grouping_type: LighterGroupingTypeNative venue relationship.
orders: Vec<OrderInfo>Order bodies, with the parent first for OTO and OTOCO.
attributes: L2TxAttributesL2 attributes.
Trait Implementations§
Source§impl Clone for CreateGroupedOrdersTxInfo
impl Clone for CreateGroupedOrdersTxInfo
Source§impl Debug for CreateGroupedOrdersTxInfo
impl Debug for CreateGroupedOrdersTxInfo
impl Eq for CreateGroupedOrdersTxInfo
Source§impl Hash for CreateGroupedOrdersTxInfo
impl Hash for CreateGroupedOrdersTxInfo
Source§impl LighterTx for CreateGroupedOrdersTxInfo
impl LighterTx for CreateGroupedOrdersTxInfo
Source§fn tx_type(&self) -> LighterTxType
fn tx_type(&self) -> LighterTxType
L2 transaction type discriminant emitted on the wire.
Source§fn attributes(&self) -> L2TxAttributes
fn attributes(&self) -> L2TxAttributes
Per-transaction attributes; defaults to an empty set.
Source§fn push_body_elements(&self, elems: &mut Vec<Fp>)
fn push_body_elements(&self, elems: &mut Vec<Fp>)
Append the body field elements after the preamble. Caller pushes the
preamble; implementations push the body in the upstream-fixed order.
impl StructuralPartialEq for CreateGroupedOrdersTxInfo
Auto Trait Implementations§
impl Freeze for CreateGroupedOrdersTxInfo
impl RefUnwindSafe for CreateGroupedOrdersTxInfo
impl Send for CreateGroupedOrdersTxInfo
impl Sync for CreateGroupedOrdersTxInfo
impl Unpin for CreateGroupedOrdersTxInfo
impl UnsafeUnpin for CreateGroupedOrdersTxInfo
impl UnwindSafe for CreateGroupedOrdersTxInfo
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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