Function nekoslife::get_with_client [−][src]
pub async fn get_with_client(
client: &Client,
category: impl Into<Category>
) -> Result<String, NekosLifeError>
Expand description
Gets the url of an image / gif from the api, from the given category, and using the given client.
Examples
let client = reqwest::Client::new(); let url: String = nekoslife::get_with_client(&client, nekoslife::SfwCategory::Waifu).await?;