drklee3 / jservice

Rust crate for jService.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jService Rust

Async Rust API wrapper for jService.

Provides a trait for an existing Reqwest client, allowing you to bring your own client instead of using a built in one.

Example

use jservice_rs::JServiceRequester;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = reqwest::Client::new();

    let clues = client
        .get_clues(|options| options
            .value(600)
            .category(21)
        )
        .await?;

    println!("{:?}", clues);

    Ok(())
}

About

Rust crate for jService.io

License:MIT License


Languages

Language:Rust 100.0%