les 0.1.0-alpha.2

less is the crate provide binding for crypto network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::Deserialize;
use serde::Serialize;
use super::Interval;
use super::RateLimitType;

/// This struct represents the rate limit
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct RateLimit {
    rate_limit_type: RateLimitType,
    interval: Interval,
    limit: u64,
}