pub struct EnergySource {
pub source: EnergySourceCategory,
pub percentage: Number,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
One energy source and its share of the mix.
Spec: 2.3.0 §mod_locations_energysource_class
Fields§
§source: EnergySourceCategoryThe type of energy source.
percentage: NumberPercentage of this source (0–100) in the mix.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Trait Implementations§
Source§impl Clone for EnergySource
impl Clone for EnergySource
Source§fn clone(&self) -> EnergySource
fn clone(&self) -> EnergySource
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 EnergySource
impl Debug for EnergySource
Source§impl<'de> Deserialize<'de> for EnergySource
impl<'de> Deserialize<'de> for EnergySource
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 EnergySource
impl JsonSchema for EnergySource
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 moreSource§impl PartialEq for EnergySource
impl PartialEq for EnergySource
Source§impl Serialize for EnergySource
impl Serialize for EnergySource
impl StructuralPartialEq for EnergySource
Source§impl Validate for EnergySource
impl Validate for EnergySource
Auto Trait Implementations§
impl Freeze for EnergySource
impl RefUnwindSafe for EnergySource
impl Send for EnergySource
impl Sync for EnergySource
impl Unpin for EnergySource
impl UnsafeUnpin for EnergySource
impl UnwindSafe for EnergySource
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