Struct xapi::Symbol

source ·
pub struct Symbol {
Show 46 fields pub ask: f64, pub bid: f64, pub category_name: String, pub contract_size: i64, pub currency: String, pub currency_pair: bool, pub currency_profit: String, pub description: String, pub expiration: Option<i64>, pub group_name: String, pub high: f64, pub initial_margin: i64, pub instant_max_volume: i64, pub leverage: f64, pub long_only: bool, pub lot_max: f64, pub lot_min: f64, pub lot_step: f64, pub low: f64, pub margin_hedged: i64, pub margin_hedged_strong: bool, pub margin_maintenance: Option<i64>, pub margin_mode: i64, pub percentage: f64, pub pips_precision: Option<i64>, pub precision: i64, pub profit_mode: i64, pub quote_id: i64, pub short_selling: bool, pub spread_raw: f64, pub spread_table: f64, pub starting: Option<i64>, pub step_rule_id: i64, pub stops_level: i64, pub swap_rollover3days: i64, pub swap_enable: bool, pub swap_long: f64, pub swap_short: f64, pub swap_type: i64, pub symbol: String, pub tick_size: f64, pub tick_value: f64, pub time: i64, pub time_string: String, pub trailing_enabled: bool, pub type_: i64,
}

Fields§

§ask: f64§bid: f64§category_name: String§contract_size: i64§currency: String§currency_pair: bool§currency_profit: String§description: String§expiration: Option<i64>§group_name: String§high: f64§initial_margin: i64§instant_max_volume: i64§leverage: f64§long_only: bool§lot_max: f64§lot_min: f64§lot_step: f64§low: f64§margin_hedged: i64§margin_hedged_strong: bool§margin_maintenance: Option<i64>§margin_mode: i64§percentage: f64§pips_precision: Option<i64>§precision: i64§profit_mode: i64§quote_id: i64§short_selling: bool§spread_raw: f64§spread_table: f64§starting: Option<i64>§step_rule_id: i64§stops_level: i64§swap_rollover3days: i64§swap_enable: bool§swap_long: f64§swap_short: f64§swap_type: i64§symbol: String§tick_size: f64§tick_value: f64§time: i64§time_string: String§trailing_enabled: bool§type_: i64

Trait Implementations§

source§

impl Clone for Symbol

source§

fn clone(&self) -> Symbol

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Symbol

source§

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

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

impl Default for Symbol

source§

fn default() -> Symbol

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

impl<'de> Deserialize<'de> for Symbol

source§

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

Deserialize this value from the given Serde deserializer. Read more

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> 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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

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