pub struct OrderAllocation {
pub account: Option<String>,
pub position: Option<String>,
pub position_desired: Option<String>,
pub position_after: Option<String>,
pub desired_alloc_qty: Option<String>,
pub allowed_alloc_qty: Option<String>,
pub is_monetary: Option<bool>,
}Fields§
§account: Option<String>§position: Option<String>§position_desired: Option<String>§position_after: Option<String>§desired_alloc_qty: Option<String>§allowed_alloc_qty: Option<String>§is_monetary: Option<bool>Implementations§
Source§impl OrderAllocation
impl OrderAllocation
Sourcepub fn account(&self) -> &str
pub fn account(&self) -> &str
Returns the value of account, or the default value if account is unset.
Sourcepub fn position(&self) -> &str
pub fn position(&self) -> &str
Returns the value of position, or the default value if position is unset.
Sourcepub fn position_desired(&self) -> &str
pub fn position_desired(&self) -> &str
Returns the value of position_desired, or the default value if position_desired is unset.
Sourcepub fn position_after(&self) -> &str
pub fn position_after(&self) -> &str
Returns the value of position_after, or the default value if position_after is unset.
Sourcepub fn desired_alloc_qty(&self) -> &str
pub fn desired_alloc_qty(&self) -> &str
Returns the value of desired_alloc_qty, or the default value if desired_alloc_qty is unset.
Sourcepub fn allowed_alloc_qty(&self) -> &str
pub fn allowed_alloc_qty(&self) -> &str
Returns the value of allowed_alloc_qty, or the default value if allowed_alloc_qty is unset.
Sourcepub fn is_monetary(&self) -> bool
pub fn is_monetary(&self) -> bool
Returns the value of is_monetary, or the default value if is_monetary is unset.
Trait Implementations§
Source§impl Clone for OrderAllocation
impl Clone for OrderAllocation
Source§fn clone(&self) -> OrderAllocation
fn clone(&self) -> OrderAllocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderAllocation
impl Debug for OrderAllocation
Source§impl Default for OrderAllocation
impl Default for OrderAllocation
Source§impl Hash for OrderAllocation
impl Hash for OrderAllocation
Source§impl Message for OrderAllocation
impl Message for OrderAllocation
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.Source§impl PartialEq for OrderAllocation
impl PartialEq for OrderAllocation
impl Eq for OrderAllocation
impl StructuralPartialEq for OrderAllocation
Auto Trait Implementations§
impl Freeze for OrderAllocation
impl RefUnwindSafe for OrderAllocation
impl Send for OrderAllocation
impl Sync for OrderAllocation
impl Unpin for OrderAllocation
impl UnsafeUnpin for OrderAllocation
impl UnwindSafe for OrderAllocation
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