openai_struct/models/
costs_result.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub CostsResult : The aggregated costs details of the specific time bucket.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct CostsResult {
18    #[serde(rename = "amount")]
19    pub amount: Option<crate::models::CostsResultAmount>,
20    /// When `group_by=line_item`, this field provides the line item of the grouped costs result.
21    #[serde(rename = "line_item")]
22    pub line_item: Option<String>,
23    #[serde(rename = "object")]
24    pub object: String,
25    /// When `group_by=project_id`, this field provides the project ID of the grouped costs result.
26    #[serde(rename = "project_id")]
27    pub project_id: Option<String>,
28}