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_os = "linux")] fn create_symlinks(&self) -> bool; } pub enum SettingsValidity { Valid, Invalid { reason: String }, }