lattice_sdk/api/types/
fuel.rs

1pub use crate::prelude::*;
2
3/// Fuel describes an entity's repository of fuels stores including current amount, operational requirements, and maximum authorized capacity
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
5pub struct Fuel {
6    /// unique fuel identifier
7    #[serde(rename = "fuelId")]
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub fuel_id: Option<String>,
10    /// long form name of the fuel source.
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub name: Option<String>,
13    /// timestamp the information was reported
14    #[serde(rename = "reportedDate")]
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub reported_date: Option<DateTime<Utc>>,
17    /// amount of gallons on hand
18    #[serde(rename = "amountGallons")]
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub amount_gallons: Option<i64>,
21    /// how much the asset is allowed to have available (in gallons)
22    #[serde(rename = "maxAuthorizedCapacityGallons")]
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub max_authorized_capacity_gallons: Option<i64>,
25    /// minimum required for operations (in gallons)
26    #[serde(rename = "operationalRequirementGallons")]
27    #[serde(skip_serializing_if = "Option::is_none")]
28    pub operational_requirement_gallons: Option<i64>,
29    /// fuel in a single asset may have different levels of classification
30    /// use case: fuel for a SECRET asset while diesel fuel may be UNCLASSIFIED
31    #[serde(rename = "dataClassification")]
32    #[serde(skip_serializing_if = "Option::is_none")]
33    pub data_classification: Option<Classification>,
34    /// source of information
35    #[serde(rename = "dataSource")]
36    #[serde(skip_serializing_if = "Option::is_none")]
37    pub data_source: Option<String>,
38}