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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.