use serde::ser::{Serializer, Serialize, Error as SerError}; mod save_data; mod save_to_file; struct Unserialisable; impl Serialize for Unserialisable { fn serialize(&self, _: S) -> Result { Err(S::Error::custom("unserialisable")) } }