afinsp-rs 0.1.1

AFINSP Billing SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// this file is @generated
use serde::{Deserialize, Serialize};

use super::calendar_unit::CalendarUnit;

/// Always ends at now — e.g. 30 days means the last 30 days, old usage drops off automatically.
#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct SlidingWindowResetPeriod {
    pub interval: i32,

    pub unit: CalendarUnit,
}

impl SlidingWindowResetPeriod {
    pub fn new(interval: i32, unit: CalendarUnit) -> Self {
        Self { interval, unit }
    }
}