pub struct AnimalEndpoint(/* private fields */);
Expand description
An endpoint that sends a random image and fact of an animal
§Examples
use some_random_api::Client;
Client::new(None::<String>).animal.bird().await?;
Implementations§
Source§impl AnimalEndpoint
impl AnimalEndpoint
Sourcepub async fn bird(&self) -> Result<Animal>
pub async fn bird(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a bird
Sourcepub async fn cat(&self) -> Result<Animal>
pub async fn cat(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a cat
Sourcepub async fn dog(&self) -> Result<Animal>
pub async fn dog(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a dog
Sourcepub async fn fox(&self) -> Result<Animal>
pub async fn fox(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a fox
Sourcepub async fn kangaroo(&self) -> Result<Animal>
pub async fn kangaroo(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a kangaroo
Sourcepub async fn koala(&self) -> Result<Animal>
pub async fn koala(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a koala
Sourcepub async fn panda(&self) -> Result<Animal>
pub async fn panda(&self) -> Result<Animal>
An endpoint that sends a random image and fact of a panda
Auto Trait Implementations§
impl Freeze for AnimalEndpoint
impl !RefUnwindSafe for AnimalEndpoint
impl Send for AnimalEndpoint
impl Sync for AnimalEndpoint
impl Unpin for AnimalEndpoint
impl !UnwindSafe for AnimalEndpoint
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