pub struct PokemonEndpoint(/* private fields */);
Expand description
An endpoint that sends Pokemon information
§Examples
use some_random_api::Client;
Client::new(None::<String>).pokemon.pokedex("pikachu").await?;
Implementations§
Source§impl PokemonEndpoint
impl PokemonEndpoint
Sourcepub async fn abilities<T: ToString>(&self, ability: T) -> Result<PokemonAbility>
pub async fn abilities<T: ToString>(&self, ability: T) -> Result<PokemonAbility>
Look up Pokemon abilities
Sourcepub async fn items<T: ToString>(&self, item: T) -> Result<PokemonItem>
pub async fn items<T: ToString>(&self, item: T) -> Result<PokemonItem>
Look up Pokemon items
Sourcepub async fn moves<T: ToString>(&self, pokemon_move: T) -> Result<PokemonMove>
pub async fn moves<T: ToString>(&self, pokemon_move: T) -> Result<PokemonMove>
Look up Pokemon moves
Auto Trait Implementations§
impl Freeze for PokemonEndpoint
impl !RefUnwindSafe for PokemonEndpoint
impl Send for PokemonEndpoint
impl Sync for PokemonEndpoint
impl Unpin for PokemonEndpoint
impl !UnwindSafe for PokemonEndpoint
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