pub struct Order {Show 13 fields
pub account_id: String,
pub symbol: String,
pub quantity: Option<Decimal>,
pub side: i32,
pub type: i32,
pub time_in_force: i32,
pub limit_price: Option<Decimal>,
pub stop_price: Option<Decimal>,
pub stop_condition: i32,
pub legs: Vec<Leg>,
pub client_order_id: String,
pub valid_before: i32,
pub comment: String,
}Fields§
§account_id: String§symbol: String§quantity: Option<Decimal>§side: i32§type: i32§time_in_force: i32§limit_price: Option<Decimal>§stop_price: Option<Decimal>§stop_condition: i32§legs: Vec<Leg>§client_order_id: String§valid_before: i32§comment: StringImplementations§
Source§impl Order
impl Order
Sourcepub fn side(&self) -> Side
pub fn side(&self) -> Side
Returns the enum value of side, or the default if the field is set to an invalid enum value.
Sourcepub fn type(&self) -> OrderType
pub fn type(&self) -> OrderType
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn time_in_force(&self) -> TimeInForce
pub fn time_in_force(&self) -> TimeInForce
Returns the enum value of time_in_force, or the default if the field is set to an invalid enum value.
Sourcepub fn set_time_in_force(&mut self, value: TimeInForce)
pub fn set_time_in_force(&mut self, value: TimeInForce)
Sets time_in_force to the provided enum value.
Sourcepub fn stop_condition(&self) -> StopCondition
pub fn stop_condition(&self) -> StopCondition
Returns the enum value of stop_condition, or the default if the field is set to an invalid enum value.
Sourcepub fn set_stop_condition(&mut self, value: StopCondition)
pub fn set_stop_condition(&mut self, value: StopCondition)
Sets stop_condition to the provided enum value.
Sourcepub fn valid_before(&self) -> ValidBefore
pub fn valid_before(&self) -> ValidBefore
Returns the enum value of valid_before, or the default if the field is set to an invalid enum value.
Sourcepub fn set_valid_before(&mut self, value: ValidBefore)
pub fn set_valid_before(&mut self, value: ValidBefore)
Sets valid_before 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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.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 UnsafeUnpin 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,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].