Skip to main content

GroupOrderNode

Struct GroupOrderNode 

Source
pub struct GroupOrderNode {
Show 31 fields pub acc_id: u64, pub client_order_id: String, pub code: String, pub sec_market: i32, pub trd_side: i32, pub order_type: i32, pub qty: Option<String>, pub amount: Option<String>, pub price: Option<String>, pub lot_type: u32, pub time_in_force: Option<u32>, pub expire_time: Option<u64>, pub order_trade_time_type: Option<u32>, pub enable_ba_trade: Option<u32>, pub position_open_type: Option<u32>, pub force_key: Option<u32>, pub condition: Option<Condition>, pub trigger_info: Option<TriggerInfo>, pub children_relation: i32, pub brother_relation: i32, pub children: Vec<GroupOrderNode>, pub futures_price_type: Option<u32>, pub forex_addition: Option<ForexAddition>, pub multi_leg_info: Option<MultiLegInfo>, pub position_id: Option<String>, pub combo_id: Option<String>, pub ticket_list: Vec<String>, pub third_party_bcan: Option<String>, pub custom_field_json: Option<String>, pub margin_trading_type: Option<u32>, pub margin_period_type: Option<u32>,
}

Fields§

§acc_id: u64§client_order_id: String§code: String§sec_market: i32§trd_side: i32§order_type: i32§qty: Option<String>§amount: Option<String>§price: Option<String>§lot_type: u32§time_in_force: Option<u32>§expire_time: Option<u64>§order_trade_time_type: Option<u32>

US/CA only; omit for Unset and every other market.

§enable_ba_trade: Option<u32>

HK only; omit for Unset and every other market.

§position_open_type: Option<u32>§force_key: Option<u32>§condition: Option<Condition>§trigger_info: Option<TriggerInfo>§children_relation: i32§brother_relation: i32§children: Vec<GroupOrderNode>§futures_price_type: Option<u32>

Futures only. Rival=1 / Market=2; omit for specified-price Normal.

§forex_addition: Option<ForexAddition>§multi_leg_info: Option<MultiLegInfo>§position_id: Option<String>§combo_id: Option<String>§ticket_list: Vec<String>§third_party_bcan: Option<String>§custom_field_json: Option<String>§margin_trading_type: Option<u32>

JP margin validation hints only. If present they must match the source-derived Negotiable=1 / Indefinite=1 values.

§margin_period_type: Option<u32>

Implementations§

Source§

impl GroupOrderNode

Source

pub fn qty(&self) -> &str

Returns the value of qty, or the default value if qty is unset.

Source

pub fn amount(&self) -> &str

Returns the value of amount, or the default value if amount is unset.

Source

pub fn price(&self) -> &str

Returns the value of price, or the default value if price is unset.

Source

pub fn time_in_force(&self) -> u32

Returns the value of time_in_force, or the default value if time_in_force is unset.

Source

pub fn expire_time(&self) -> u64

Returns the value of expire_time, or the default value if expire_time is unset.

Source

pub fn order_trade_time_type(&self) -> u32

Returns the value of order_trade_time_type, or the default value if order_trade_time_type is unset.

Source

pub fn enable_ba_trade(&self) -> u32

Returns the value of enable_ba_trade, or the default value if enable_ba_trade is unset.

Source

pub fn position_open_type(&self) -> u32

Returns the value of position_open_type, or the default value if position_open_type is unset.

Source

pub fn force_key(&self) -> u32

Returns the value of force_key, or the default value if force_key is unset.

Source

pub fn children_relation(&self) -> RelationType

Returns the enum value of children_relation, or the default if the field is set to an invalid enum value.

Source

pub fn set_children_relation(&mut self, value: RelationType)

Sets children_relation to the provided enum value.

Source

pub fn brother_relation(&self) -> RelationType

Returns the enum value of brother_relation, or the default if the field is set to an invalid enum value.

Source

pub fn set_brother_relation(&mut self, value: RelationType)

Sets brother_relation to the provided enum value.

Source

pub fn futures_price_type(&self) -> u32

Returns the value of futures_price_type, or the default value if futures_price_type is unset.

Source

pub fn position_id(&self) -> &str

Returns the value of position_id, or the default value if position_id is unset.

Source

pub fn combo_id(&self) -> &str

Returns the value of combo_id, or the default value if combo_id is unset.

Source

pub fn third_party_bcan(&self) -> &str

Returns the value of third_party_bcan, or the default value if third_party_bcan is unset.

Source

pub fn custom_field_json(&self) -> &str

Returns the value of custom_field_json, or the default value if custom_field_json is unset.

Source

pub fn margin_trading_type(&self) -> u32

Returns the value of margin_trading_type, or the default value if margin_trading_type is unset.

Source

pub fn margin_period_type(&self) -> u32

Returns the value of margin_period_type, or the default value if margin_period_type is unset.

Trait Implementations§

Source§

impl Clone for GroupOrderNode

Source§

fn clone(&self) -> GroupOrderNode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GroupOrderNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GroupOrderNode

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for GroupOrderNode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for GroupOrderNode

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 GroupOrderNode

Source§

fn eq(&self, other: &GroupOrderNode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for GroupOrderNode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GroupOrderNode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.