1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! # `/exchange_rates`
//!
//! - [/exchange_rates](ExchangeRates)
use crate::Route;

pub struct ExchangeRates {
    endpoint: String,
}

impl ExchangeRates {
    pub fn required() -> ExchangeRates {
        ExchangeRates::default()
    }
}

impl Default for ExchangeRates {
    fn default() -> ExchangeRates {
        ExchangeRates {
            endpoint: String::from("/exchange_rates"),
        }
    }
}
impl Route for ExchangeRates {
    fn api_endpoint(&self) -> String {
        format!("{}", self.endpoint)
    }
    fn query_string(&self) -> String {
        String::from("")
    }
}