Struct ig_brokers::models::CreatePosition[][src]

pub struct CreatePosition {
Show fields pub currency_code: Option<String>, pub deal_reference: Option<String>, pub direction: Option<Direction>, pub epic: Option<String>, pub expiry: Option<String>, pub force_open: Option<bool>, pub guaranteed_stop: Option<bool>, pub level: Option<f64>, pub limit_distance: Option<f64>, pub limit_level: Option<f64>, pub order_type: Option<OrderType>, pub quote_id: Option<String>, pub size: Option<f64>, pub stop_distance: Option<f64>, pub stop_level: Option<f64>, pub time_in_force: Option<TimeInForce>, pub trailing_stop: Option<bool>, pub trailing_stop_increment: Option<f64>,
}

Fields

currency_code: Option<String>deal_reference: Option<String>direction: Option<Direction>epic: Option<String>expiry: Option<String>force_open: Option<bool>guaranteed_stop: Option<bool>level: Option<f64>limit_distance: Option<f64>limit_level: Option<f64>order_type: Option<OrderType>quote_id: Option<String>size: Option<f64>stop_distance: Option<f64>stop_level: Option<f64>time_in_force: Option<TimeInForce>trailing_stop: Option<bool>trailing_stop_increment: Option<f64>

Trait Implementations

Formats the value using the given formatter. Read more

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.