You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
521 B
Rust
24 lines
521 B
Rust
//! This crate provides a client for the AnimeThemes.moe api.
|
|
//!
|
|
//! ## Search
|
|
//! ```
|
|
//! # use animethemes_rs::error::ApiResult;
|
|
//! use animethemes_rs::client::AnimeThemesClient;
|
|
//!
|
|
//! # async fn a() -> ApiResult<()> {
|
|
//! let client = AnimeThemesClient::default();
|
|
//! let response = client.search("Vivy", &[], &[]).await?;
|
|
//!
|
|
//! assert!(response.anime.is_some());
|
|
//! assert!(response.videos.is_some());
|
|
//! # Ok(()) }
|
|
//! ```
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
mod utils;
|
|
|
|
pub mod client;
|
|
pub mod error;
|
|
pub mod models;
|