pub struct ToolGameContext {
pub game_id: String,
pub display_name: String,
pub install_path: Option<PathBuf>,
pub launcher_source: Option<LauncherSource>,
pub steam_app_id: Option<String>,
pub executable_dir: Option<PathBuf>,
}Expand description
Game metadata available to per-game tools.
Fields§
§game_id: String§display_name: String§install_path: Option<PathBuf>§launcher_source: Option<LauncherSource>§steam_app_id: Option<String>§executable_dir: Option<PathBuf>Implementations§
Source§impl ToolGameContext
impl ToolGameContext
pub fn from_parts( game_id: &str, display_name: impl Into<String>, install_path: Option<PathBuf>, detected: Option<&DetectedGame>, ) -> Self
pub fn launcher_label(&self) -> String
Trait Implementations§
Source§impl Clone for ToolGameContext
impl Clone for ToolGameContext
Source§fn clone(&self) -> ToolGameContext
fn clone(&self) -> ToolGameContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ToolGameContext
impl RefUnwindSafe for ToolGameContext
impl Send for ToolGameContext
impl Sync for ToolGameContext
impl Unpin for ToolGameContext
impl UnsafeUnpin for ToolGameContext
impl UnwindSafe for ToolGameContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more