pub struct ExchangeRatesRequest {
pub base_currency: String,
pub exchange_rates: i64,
pub include_spread: Option<i64>,
pub loginid: Option<String>,
pub passthrough: Option<Value>,
pub req_id: Option<i64>,
pub subscribe: Option<i64>,
pub target_currency: Option<String>,
}
Expand description
Retrieves the exchange rate from a base currency to a target currency supported by the system.
Fields§
§base_currency: String
Base currency (can be obtained from payout_currencies
call)\n
exchange_rates: i64
Must be 1
\n
include_spread: Option<i64>
[Optional] 1 - Request for ask and bid rates along with the spot rate. Only available if target_currency is provided.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
subscribe: Option<i64>
[Optional] 1 - to initiate a realtime stream of exchange rates relative to base currency.\n
target_currency: Option<String>
[Optional] Target currency for the exchange rate. If subscribe is set, target_currency must be specified as well.\n
Trait Implementations§
Source§impl Clone for ExchangeRatesRequest
impl Clone for ExchangeRatesRequest
Source§fn clone(&self) -> ExchangeRatesRequest
fn clone(&self) -> ExchangeRatesRequest
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 ExchangeRatesRequest
impl Debug for ExchangeRatesRequest
Source§impl<'de> Deserialize<'de> for ExchangeRatesRequest
impl<'de> Deserialize<'de> for ExchangeRatesRequest
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 ExchangeRatesRequest
impl RefUnwindSafe for ExchangeRatesRequest
impl Send for ExchangeRatesRequest
impl Sync for ExchangeRatesRequest
impl Unpin for ExchangeRatesRequest
impl UnwindSafe for ExchangeRatesRequest
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