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
// this file is @generated
use serde::{Deserialize, Serialize};

use super::unit_conversion_rounding_enum::UnitConversionRoundingEnum;

#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct UnitConversion {
    pub factor: i32,

    pub rounding: UnitConversionRoundingEnum,
}

impl UnitConversion {
    pub fn new(factor: i32, rounding: UnitConversionRoundingEnum) -> Self {
        Self { factor, rounding }
    }
}