ckb_jsonrpc_types/
fee_rate.rs

1
2
3
4
5
6
7
8
9
10
11
12
#![doc(hidden)]

// #[doc(hidden)] attribute
// serde remote hitting https://github.com/rust-lang/rust/issues/42008

use ckb_types::core::FeeRate;
use serde::{Deserialize, Serialize};

/// Serialize and Deserialize implementations for FeeRate
#[derive(Clone, Copy, Default, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
#[serde(remote = "FeeRate")]
pub struct FeeRateDef(u64);