pub struct IndiegalaSource {
pub installed_json_path: Option<PathBuf>,
}Expand description
Provedor de jogos instalados da IndieGala (IGClient).
Fields§
§installed_json_path: Option<PathBuf>Caminho para installed.json. Se None, usa o caminho padrão do Windows.
Implementations§
Source§impl IndiegalaSource
impl IndiegalaSource
pub fn new(installed_json_path: Option<PathBuf>) -> Self
Sourcepub async fn fetch_installed_detailed(
&self,
) -> Result<Vec<IndiegalaGame>, AppError>
pub async fn fetch_installed_detailed( &self, ) -> Result<Vec<IndiegalaGame>, AppError>
Busca os jogos instalados com metadados completos.
Retorna IndiegalaGame ao invés de SourceGame puro, permitindo
persistir description_raw e tags (não fazem parte do SourceGame padrão).
Sourcepub async fn fetch_full_library_detailed(
&self,
config_json_path: Option<PathBuf>,
) -> Result<Vec<IndiegalaGame>, AppError>
pub async fn fetch_full_library_detailed( &self, config_json_path: Option<PathBuf>, ) -> Result<Vec<IndiegalaGame>, AppError>
Busca a biblioteca completa (posse), cruzando com installed.json pra marcar o que já está instalado.
Jogos possuídos mas nunca instalados entram com installed: false e, quando existir entrada
correspondente no dicionário achatado do config.json (só cobre jogos já instalados alguma
vez — não é garantido para todos), ganham descrição/tags também. Senão, ficam só com o nome.
Trait Implementations§
Source§impl GameSource for IndiegalaSource
impl GameSource for IndiegalaSource
fn fetch_games<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SourceGame>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for IndiegalaSource
impl RefUnwindSafe for IndiegalaSource
impl Send for IndiegalaSource
impl Sync for IndiegalaSource
impl Unpin for IndiegalaSource
impl UnsafeUnpin for IndiegalaSource
impl UnwindSafe for IndiegalaSource
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more