pub struct EnergyMix {
pub is_green_energy: bool,
pub energy_sources: Vec<EnergySource>,
pub environ_impact: Vec<EnvironmentalImpact>,
pub supplier_name: Option<OcpiString<64>>,
pub energy_product_name: Option<OcpiString<64>>,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
The energy mix and environmental impact of the energy supplied at a location or in a tariff.
Spec: 2.3.0 §mod_locations_energymix_class
Fields§
§is_green_energy: boolTrue if 100% from regenerative sources: CO2 and nuclear waste are zero.
energy_sources: Vec<EnergySource>Energy sources of this location’s tariff, as category and percentage.
environ_impact: Vec<EnvironmentalImpact>Nuclear waste and CO2 exhaust of this location’s tariff.
supplier_name: Option<OcpiString<64>>Name of the energy supplier delivering the energy for this location or tariff.
energy_product_name: Option<OcpiString<64>>Name of the energy supplier’s product/tariff plan used at this location.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnergyMix
impl<'de> Deserialize<'de> for EnergyMix
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 JsonSchema for EnergyMix
impl JsonSchema for EnergyMix
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for EnergyMix
Auto Trait Implementations§
impl Freeze for EnergyMix
impl RefUnwindSafe for EnergyMix
impl Send for EnergyMix
impl Sync for EnergyMix
impl Unpin for EnergyMix
impl UnsafeUnpin for EnergyMix
impl UnwindSafe for EnergyMix
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