pub struct WaterUsage {
pub id: String,
pub entity_id: String,
pub facility_id: String,
pub period: NaiveDate,
pub source: WaterSource,
pub withdrawal_m3: Decimal,
pub discharge_m3: Decimal,
pub consumption_m3: Decimal,
pub is_water_stressed_area: bool,
}Expand description
Water usage record for a facility.
Fields§
§id: String§entity_id: String§facility_id: String§period: NaiveDate§source: WaterSource§withdrawal_m3: Decimal§discharge_m3: Decimal§consumption_m3: Decimal§is_water_stressed_area: boolImplementations§
Source§impl WaterUsage
impl WaterUsage
Sourcepub fn computed_consumption(&self) -> Decimal
pub fn computed_consumption(&self) -> Decimal
Consumption = withdrawal − discharge.
Trait Implementations§
Source§impl Clone for WaterUsage
impl Clone for WaterUsage
Source§fn clone(&self) -> WaterUsage
fn clone(&self) -> WaterUsage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaterUsage
impl Debug for WaterUsage
Source§impl<'de> Deserialize<'de> for WaterUsage
impl<'de> Deserialize<'de> for WaterUsage
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
Source§impl Serialize for WaterUsage
impl Serialize for WaterUsage
Source§impl ToNodeProperties for WaterUsage
impl ToNodeProperties for WaterUsage
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g.
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g.
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.
Auto Trait Implementations§
impl Freeze for WaterUsage
impl RefUnwindSafe for WaterUsage
impl Send for WaterUsage
impl Sync for WaterUsage
impl Unpin for WaterUsage
impl UnsafeUnpin for WaterUsage
impl UnwindSafe for WaterUsage
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