pub struct Order {Show 13 fields
pub chain_id: i32,
pub matcher_public_key: Vec<u8>,
pub asset_pair: Option<AssetPair>,
pub order_side: i32,
pub amount: i64,
pub price: i64,
pub timestamp: i64,
pub expiration: i64,
pub matcher_fee: Option<Amount>,
pub version: i32,
pub proofs: Vec<Vec<u8>>,
pub price_mode: i32,
pub sender: Option<Sender>,
}
Fields§
§chain_id: i32
§matcher_public_key: Vec<u8>
§asset_pair: Option<AssetPair>
§order_side: i32
§amount: i64
§price: i64
§timestamp: i64
§expiration: i64
§matcher_fee: Option<Amount>
§version: i32
§proofs: Vec<Vec<u8>>
§price_mode: i32
§sender: Option<Sender>
Implementations§
Source§impl Order
impl Order
Sourcepub fn order_side(&self) -> Side
pub fn order_side(&self) -> Side
Returns the enum value of order_side
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_order_side(&mut self, value: Side)
pub fn set_order_side(&mut self, value: Side)
Sets order_side
to the provided enum value.
Sourcepub fn price_mode(&self) -> PriceMode
pub fn price_mode(&self) -> PriceMode
Returns the enum value of price_mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_price_mode(&mut self, value: PriceMode)
pub fn set_price_mode(&mut self, value: PriceMode)
Sets price_mode
to the provided enum value.
Trait Implementations§
Source§impl Message for Order
impl Message for Order
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl TryFrom<&SignedOrder> for Order
impl TryFrom<&SignedOrder> for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request