Crates.io | neutral |
lib.rs | neutral |
version | 0.2.6 |
source | src |
created_at | 2022-10-20 14:30:40.256057 |
updated_at | 2022-10-26 17:01:10.336583 |
description | Unofficial rust client for neutrinoapi.com |
homepage | |
repository | https://github.com/Diskyver/neutral |
max_upload_size | |
id | 692489 |
size | 39,878 |
Provide an API to interact with some features provided by neutrinoapi.com.
A general-purpose tool that solves recurring problems encountered during the development of software systems. It is used across many industries by software developers, data scientists and systems operators.
The Neutral structure act as an API client of neutrinoapi.
Features are represented by modules, each module contains a struct which implement a send
method to call neutrinoapi.com. Use an instance of Neutral to interact with neutrinoapi.
Example for ip_info endpoint:
let api_auth = ApiAuth::new("userid".to_string(), "apikey".to_string());
let neutral = Neutral::try_new("https://neutrinoapi.net", api_auth).unwrap();
let ip_info_response = neutral.ip_info().send(ip_addr).await.unwrap();