pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn get_project(&self, id_or_slug: &str) -> Result<Project>
pub async fn get_projects(&self, ids: &[&str]) -> Result<Vec<Project>>
pub async fn get_project_dependencies( &self, id_or_slug: &str, ) -> Result<Dependencies>
pub async fn search_projects(&self, query: &str) -> Result<SearchResult>
pub async fn get_version( &self, project_id: &str, version_id_or_number: &str, ) -> Result<Version>
pub async fn get_latest_version_from_hash( &self, hash: &str, loaders: &[&str], game_versions: &[&str], algorithm: Option<&str>, ) -> Result<Version>
pub async fn get_latest_versions_from_hashes( &self, hashes: &[&str], loaders: &[&str], game_versions: &[&str], algorithm: Option<&str>, ) -> Result<HashMap<String, Version>>
pub async fn list_versions(&self, project_id: &str) -> Result<Vec<Version>>
pub async fn get_version_from_hash(&self, hash: &str) -> Result<Version>
pub async fn get_versions_from_hashes( &self, hashes: Vec<String>, ) -> Result<HashMap<String, Version>>
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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