pub struct Itchio { /* private fields */ }Expand description
What you need to make requests, it stores and uses your API key.
Implementations§
Source§impl Itchio
impl Itchio
Sourcepub async fn get_credentials_info(&self) -> Result<Info, ItchioError>
pub async fn get_credentials_info(&self) -> Result<Info, ItchioError>
Get your profile: https://itch.io/docs/api/serverside#reference/httpsitchioapi1keycredentialsinfo>
Source§impl Itchio
impl Itchio
Sourcepub async fn get_my_games(&self) -> Result<Vec<Game>, ItchioError>
pub async fn get_my_games(&self) -> Result<Vec<Game>, ItchioError>
Get the games you’ve uploaded or have edit access to: https://itch.io/docs/api/serverside#reference/profilegames-httpsitchioapi1keymy-games
Source§impl Itchio
impl Itchio
Sourcepub fn new(key: String) -> Self
pub fn new(key: String) -> Self
Create a new Itchio client using your API key, which you can find there: https://itch.io/user/settings/api-keys
Sourcepub async fn request<T: DeserializeOwned>(
&self,
endpoint: String,
) -> Result<T, ItchioError>
pub async fn request<T: DeserializeOwned>( &self, endpoint: String, ) -> Result<T, ItchioError>
Make your own requests by specifying an endpoint and struct to deserialize!
Auto Trait Implementations§
impl Freeze for Itchio
impl !RefUnwindSafe for Itchio
impl Send for Itchio
impl Sync for Itchio
impl Unpin for Itchio
impl !UnwindSafe for Itchio
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