pub struct Fuel {
pub fuel_id: Option<String>,
pub name: Option<String>,
pub reported_date: Option<DateTime<Utc>>,
pub amount_gallons: Option<i64>,
pub max_authorized_capacity_gallons: Option<i64>,
pub operational_requirement_gallons: Option<i64>,
pub data_classification: Option<Classification>,
pub data_source: Option<String>,
}Expand description
Fuel describes an entity’s repository of fuels stores including current amount, operational requirements, and maximum authorized capacity
Fields§
§fuel_id: Option<String>unique fuel identifier
name: Option<String>long form name of the fuel source.
reported_date: Option<DateTime<Utc>>timestamp the information was reported
amount_gallons: Option<i64>amount of gallons on hand
how much the asset is allowed to have available (in gallons)
operational_requirement_gallons: Option<i64>minimum required for operations (in gallons)
data_classification: Option<Classification>fuel in a single asset may have different levels of classification use case: fuel for a SECRET asset while diesel fuel may be UNCLASSIFIED
data_source: Option<String>source of information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fuel
impl<'de> Deserialize<'de> for Fuel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Fuel
impl StructuralPartialEq for Fuel
Auto Trait Implementations§
impl Freeze for Fuel
impl RefUnwindSafe for Fuel
impl Send for Fuel
impl Sync for Fuel
impl Unpin for Fuel
impl UnwindSafe for Fuel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.