pub struct TradingServersRequest {
pub account_type: Option<AccountType>,
pub environment: Option<Environment>,
pub loginid: Option<String>,
pub market_type: Option<MarketType>,
pub passthrough: Option<Value>,
pub platform: Option<Platform>,
pub req_id: Option<i64>,
pub trading_servers: i64,
}
Expand description
Get the list of servers for a trading platform.
Fields§
§account_type: Option<AccountType>
[Optional] Trading account type.\n
environment: Option<Environment>
[Optional] Pass the environment (installation) instance. Currently, there are one demo and two real environments. Defaults to ‘all’.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
market_type: Option<MarketType>
[Optional] Market type.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
platform: Option<Platform>
[Optional] Pass the trading platform name, default to mt5\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
trading_servers: i64
Must be 1
\n
Trait Implementations§
Source§impl Clone for TradingServersRequest
impl Clone for TradingServersRequest
Source§fn clone(&self) -> TradingServersRequest
fn clone(&self) -> TradingServersRequest
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 TradingServersRequest
impl Debug for TradingServersRequest
Source§impl<'de> Deserialize<'de> for TradingServersRequest
impl<'de> Deserialize<'de> for TradingServersRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TradingServersRequest
impl RefUnwindSafe for TradingServersRequest
impl Send for TradingServersRequest
impl Sync for TradingServersRequest
impl Unpin for TradingServersRequest
impl UnwindSafe for TradingServersRequest
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