use steam_shortcuts_util::shortcut::ShortcutOwned; pub trait Platform where T: Into, { fn enabled(&self) -> bool; fn name(&self) -> &str; fn get_shortcuts(&self) -> Result, E>; fn settings_valid(&self) -> SettingsValidity; #[cfg(target_family = "unix")] fn create_symlinks(&self) -> bool; // HOME/.local/share/Steam/config/config.vdf fn needs_proton(&self, input: &T) -> bool; } pub enum SettingsValidity { Valid, Invalid { reason: String }, }