Struct waves_rust::waves_proto::Order
source · [−]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: i32matcher_public_key: Vec<u8>asset_pair: Option<AssetPair>order_side: i32amount: i64price: i64timestamp: i64expiration: i64matcher_fee: Option<Amount>version: i32proofs: Vec<Vec<u8>>price_mode: i32sender: Option<Sender>Implementations
sourceimpl 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
sourceimpl Message for Order
impl Message for Order
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into
self. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self. Read moresourceimpl TryFrom<&Order> for ProtoOrder
impl TryFrom<&Order> for ProtoOrder
sourceimpl TryFrom<&SignedOrder> for ProtoOrder
impl TryFrom<&SignedOrder> for ProtoOrder
impl StructuralPartialEq for Order
Auto Trait Implementations
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request