noah-sdk 1.1.0

A modern, type-safe Rust SDK for the Noah Business API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FeeBreakdownItem {
    /// What fee the items refers to: * ChannelFee * BusinessFee
    #[serde(rename = "Type")]
    pub r#type: String,
    #[serde(rename = "Amount")]
    pub amount: String,
}

impl FeeBreakdownItem {
    pub fn new(r#type: String, amount: String) -> FeeBreakdownItem {
        FeeBreakdownItem { r#type, amount }
    }
}