Function nekoslife::get [−][src]
pub async fn get(
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 default client.
Examples
let url: String = nekoslife::get(nekoslife::SfwCategory::Waifu).await?;