github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/usage_report.rs (about) 1 /* 2 * lakeFS API 3 * 4 * lakeFS HTTP API 5 * 6 * The version of the OpenAPI document: 1.0.0 7 * Contact: services@treeverse.io 8 * Generated by: https://openapi-generator.tech 9 */ 10 11 use crate::models; 12 13 #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 14 pub struct UsageReport { 15 #[serde(rename = "year")] 16 pub year: i32, 17 #[serde(rename = "month")] 18 pub month: i32, 19 #[serde(rename = "count")] 20 pub count: i64, 21 } 22 23 impl UsageReport { 24 pub fn new(year: i32, month: i32, count: i64) -> UsageReport { 25 UsageReport { 26 year, 27 month, 28 count, 29 } 30 } 31 } 32