Struct IndexerOrderId
pub struct IndexerOrderId {
pub subaccount_id: Option<IndexerSubaccountId>,
pub client_id: u32,
pub order_flags: u32,
pub clob_pair_id: u32,
}Expand description
IndexerOrderId refers to a single order belonging to a Subaccount.
Fields§
§subaccount_id: Option<IndexerSubaccountId>The subaccount ID that opened this order.
Note that this field has gogoproto.nullable = false so that it is
generated as a value instead of a pointer. This is because the OrderId
proto is used as a key within maps, and map comparisons will compare
pointers for equality (when the desired behavior is to compare the values).
client_id: u32The client ID of this order, unique with respect to the specific sub account (I.E., the same subaccount can’t have two orders with the same ClientId).
order_flags: u32order_flags represent order flags for the order. This field is invalid if it’s greater than 257. Each bit represents a different flag.
The following are the valid orderId flags: ShortTerm = uint32(0) Conditional = uint32(32) LongTerm = uint32(64) Twap = uint32(128) TwapSuborder = uint32(256) (for internal use only)
If both bits are set or bits other than the 2nd and 3rd are set, the order ID is invalid.
clob_pair_id: u32ID of the CLOB the order is created for.
Trait Implementations§
§impl Clone for IndexerOrderId
impl Clone for IndexerOrderId
§fn clone(&self) -> IndexerOrderId
fn clone(&self) -> IndexerOrderId
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for IndexerOrderId
impl Debug for IndexerOrderId
§impl Default for IndexerOrderId
impl Default for IndexerOrderId
§fn default() -> IndexerOrderId
fn default() -> IndexerOrderId
§impl Message for IndexerOrderId
impl Message for IndexerOrderId
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.§impl Name for IndexerOrderId
impl Name for IndexerOrderId
§const NAME: &'static str = "IndexerOrderId"
const NAME: &'static str = "IndexerOrderId"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.§const PACKAGE: &'static str = "dydxprotocol.indexer.protocol.v1"
const PACKAGE: &'static str = "dydxprotocol.indexer.protocol.v1"
., e.g. google.protobuf.§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.§impl PartialEq for IndexerOrderId
impl PartialEq for IndexerOrderId
impl StructuralPartialEq for IndexerOrderId
Auto Trait Implementations§
impl Freeze for IndexerOrderId
impl RefUnwindSafe for IndexerOrderId
impl Send for IndexerOrderId
impl Sync for IndexerOrderId
impl Unpin for IndexerOrderId
impl UnwindSafe for IndexerOrderId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].