ExchangeRate uses references, if you want to have a separate function to get the rates from a third party api and create a vector of exchange rates for all of the currencies you have to return it as static. it is worse in terms of code, usability and even slower because references are usize long isntead of u8
ExchangeRate uses references, if you want to have a separate function to get the rates from a third party api and create a vector of exchange rates for all of the currencies you have to return it as static. it is worse in terms of code, usability and even slower because references are usize long isntead of u8