Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/george-miao/bangumi
A bangumi.moe client crate
https://github.com/george-miao/bangumi
Last synced: about 2 months ago
JSON representation
A bangumi.moe client crate
- Host: GitHub
- URL: https://github.com/george-miao/bangumi
- Owner: George-Miao
- Created: 2023-04-15T01:19:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-22T05:13:49.000Z (over 1 year ago)
- Last Synced: 2024-04-24T20:28:24.304Z (8 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bangumi
This is a Rust library for the Bangumi.moe API based on [rustified](https://github.com/George-Miao/rustified).
## Usage
```rust
# #[tokio::test] async fn doc_test_1() -> Result<(), Box>{ use bangumi::*;
use bangumi::{endpoints::GetCurrent, Endpoint};let client = bangumi::client();
let result: Vec> = GetCurrent.exec(&client).await?.parse()?;
# Ok(()) }
```## With builder
```rust
# #[tokio::test] async fn doc_test_2() -> Result<(), Box>{ use bangumi::*;
use bangumi::{endpoints::SearchTags, Endpoint};let client = bangumi::client();
let result: SearchResult>> =
SearchTags::builder()
.name("魔法少女")
.keywords(false)
.tag_type(TagType::Bangumi)
.build()
.exec(&client)
.await?
.parse()?;
# Ok(()) }
```For all endpoints, see [endpoints](endpoints/index.html).