How to save and load a MqlRate

 

Hello, what is the easiest way of saving and loading a MqlRate? The code below is to give an idea, what my goal is.

MqlRates rate;
...
FileWrite(file_handle, ???rate??? );
MqlRates rate = load();

MqlRates load() {
        string line = FileReadString(file_handle);
        MqlRates result = ???????;
        return result;
}
Reason: