pub struct GameMatcher {
pub steam_appid: Option<u32>,
pub executable: Option<String>,
pub window_title: Option<String>,
}Expand description
How to recognise that the game is running. Declarative on purpose: detection is configuration, not code (ADR-0001).
Fields§
§steam_appid: Option<u32>§executable: Option<String>Executable file name, case-insensitive, e.g. “Game.exe”.
window_title: Option<String>Substring the window title must contain, compared without case.
Implementations§
Trait Implementations§
Source§impl Clone for GameMatcher
impl Clone for GameMatcher
Source§fn clone(&self) -> GameMatcher
fn clone(&self) -> GameMatcher
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 moreSource§impl Debug for GameMatcher
impl Debug for GameMatcher
Source§impl Default for GameMatcher
impl Default for GameMatcher
Source§fn default() -> GameMatcher
fn default() -> GameMatcher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GameMatcher
impl<'de> Deserialize<'de> for GameMatcher
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GameMatcher
impl PartialEq for GameMatcher
Source§impl Serialize for GameMatcher
impl Serialize for GameMatcher
impl StructuralPartialEq for GameMatcher
Auto Trait Implementations§
impl Freeze for GameMatcher
impl RefUnwindSafe for GameMatcher
impl Send for GameMatcher
impl Sync for GameMatcher
impl Unpin for GameMatcher
impl UnsafeUnpin for GameMatcher
impl UnwindSafe for GameMatcher
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