pub struct ItchioSource {
pub butler_db_path: Option<PathBuf>,
}Expand description
Provedor de jogos da itch.io, lendo diretamente butler.db (SQLite) do app itch.
Fields§
§butler_db_path: Option<PathBuf>Implementations§
Source§impl ItchioSource
impl ItchioSource
pub fn new(butler_db_path: Option<PathBuf>) -> Self
Sourcepub async fn fetch_installed_detailed(
&self,
) -> Result<Vec<ItchioGame>, AppError>
pub async fn fetch_installed_detailed( &self, ) -> Result<Vec<ItchioGame>, AppError>
Busca só os jogos atualmente com instalação registrada (caves).
Sourcepub async fn fetch_full_library_detailed(
&self,
) -> Result<Vec<ItchioGame>, AppError>
pub async fn fetch_full_library_detailed( &self, ) -> Result<Vec<ItchioGame>, AppError>
Busca a biblioteca completa de posse (tabela games, filtrando classification = 'game' para
não trazer assets/tools/soundtracks/etc que a itch.io também guarda como itens da conta do usuário),
cruzando com caves pra marcar o que está instalado e reaproveitar path/playtime desses casos.
Trait Implementations§
Source§impl GameSource for ItchioSource
impl GameSource for ItchioSource
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 ItchioSource
impl RefUnwindSafe for ItchioSource
impl Send for ItchioSource
impl Sync for ItchioSource
impl Unpin for ItchioSource
impl UnsafeUnpin for ItchioSource
impl UnwindSafe for ItchioSource
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