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};

#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct GroupedUsage {
    pub dimensions: std::collections::HashMap<String, String>,

    pub value: rust_decimal::Decimal,
}

impl GroupedUsage {
    pub fn new(
        dimensions: std::collections::HashMap<String, String>,
        value: rust_decimal::Decimal,
    ) -> Self {
        Self { dimensions, value }
    }
}