luno-rs 0.1.0

A lightweight Rust wrapper for Luno API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize)]
pub struct AccountBalance {
    pub account_id: String,
    pub asset: String,
    pub balance: String,
    pub reserved: String,
    pub unconfirmed: String,
}

#[derive(Deserialize)]
pub struct ListBalancesResponse {
    #[serde(rename = "balance")]
    pub balances: Vec<AccountBalance>,
}