mb-dev 0.1.12

my dev cli tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use reqwest::blocking::Client;
use serde::Deserialize;

#[derive(Debug, Deserialize)]
struct Response {
    origin: String,
}

fn main() {
    let res = Client::new().get("https://httpbin.org/ip").send().unwrap();
    let res: Response = res.json().unwrap();
    println!("{}", res.origin);
}