pub struct ProtoOaLightSymbol {
pub symbol_id: i64,
pub symbol_name: Option<String>,
pub enabled: Option<bool>,
pub base_asset_id: Option<i64>,
pub quote_asset_id: Option<i64>,
pub symbol_category_id: Option<i64>,
pub description: Option<String>,
pub sorting_number: Option<f64>,
}Expand description
- Lightweight symbol entity.
Fields§
§symbol_id: i64The unique identifier of the symbol in specific server environment within cTrader platform. Different brokers might have different IDs.
symbol_name: Option<String>Name of the symbol (e.g. EUR/USD).
enabled: Option<bool>If TRUE then symbol is visible for traders.
base_asset_id: Option<i64>Base asset.
quote_asset_id: Option<i64>Quote asset.
symbol_category_id: Option<i64>Id of the symbol category used for symbols grouping.
description: Option<String>§sorting_number: Option<f64>The number used for sorting Symbols in the UI (lowest number should appear at the top).
Implementations§
Source§impl ProtoOaLightSymbol
impl ProtoOaLightSymbol
Sourcepub fn symbol_name(&self) -> &str
pub fn symbol_name(&self) -> &str
Returns the value of symbol_name, or the default value if symbol_name is unset.
Sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled, or the default value if enabled is unset.
Sourcepub fn base_asset_id(&self) -> i64
pub fn base_asset_id(&self) -> i64
Returns the value of base_asset_id, or the default value if base_asset_id is unset.
Sourcepub fn quote_asset_id(&self) -> i64
pub fn quote_asset_id(&self) -> i64
Returns the value of quote_asset_id, or the default value if quote_asset_id is unset.
Sourcepub fn symbol_category_id(&self) -> i64
pub fn symbol_category_id(&self) -> i64
Returns the value of symbol_category_id, or the default value if symbol_category_id is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn sorting_number(&self) -> f64
pub fn sorting_number(&self) -> f64
Returns the value of sorting_number, or the default value if sorting_number is unset.
Trait Implementations§
Source§impl Clone for ProtoOaLightSymbol
impl Clone for ProtoOaLightSymbol
Source§fn clone(&self) -> ProtoOaLightSymbol
fn clone(&self) -> ProtoOaLightSymbol
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaLightSymbol
impl Debug for ProtoOaLightSymbol
Source§impl Default for ProtoOaLightSymbol
impl Default for ProtoOaLightSymbol
Source§impl<'de> Deserialize<'de> for ProtoOaLightSymbol
impl<'de> Deserialize<'de> for ProtoOaLightSymbol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ProtoOaLightSymbol
impl Message for ProtoOaLightSymbol
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.