I am trying to serialize some data in a struct in order to save it in a file, but the struct contains the type:
macroquad::input::KeyCode
This type currently does not implement the macro I am trying to use, is there any way to get around this?
here is the specific struct
#[derive(Savefile)] // error ! the trait bound `macroquad::input::KeyCode: Serialize` is not satisfied
pub struct UserData {
pub left: KeyCode,
pub right: KeyCode,
pub up: KeyCode,
pub down: KeyCode,
pub ability_key: [KeyCode; 5],
pub abilities: [Abilities; 5],
pub texture: String,
}