pub struct CurseForgeClient { /* private fields */ }Implementations§
Source§impl CurseForgeClient
impl CurseForgeClient
Sourcepub async fn search_mod(
&self,
name: &str,
loader: &ModLoader,
) -> Result<Vec<CfMod>>
pub async fn search_mod( &self, name: &str, loader: &ModLoader, ) -> Result<Vec<CfMod>>
Search for mods.
Sourcepub async fn get_mod_files(&self, mod_id: u64) -> Result<Vec<CfModFile>>
pub async fn get_mod_files(&self, mod_id: u64) -> Result<Vec<CfModFile>>
All file versions of a mod.
Sourcepub async fn get_files(&self, file_ids: &[u64]) -> Result<Vec<CfModFile>>
pub async fn get_files(&self, file_ids: &[u64]) -> Result<Vec<CfModFile>>
Look up several files at once by file ID.
Auto Trait Implementations§
impl !RefUnwindSafe for CurseForgeClient
impl !UnwindSafe for CurseForgeClient
impl Freeze for CurseForgeClient
impl Send for CurseForgeClient
impl Sync for CurseForgeClient
impl Unpin for CurseForgeClient
impl UnsafeUnpin for CurseForgeClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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