pub enum CtmNetworkGenItemPrimarySource {
Coal,
Oil,
Gas,
Nuclear,
Biomass,
Geothermal,
Solar,
Wind,
Hydro,
Other,
}Expand description
primary energy source
JSON schema
{
"description": "primary energy source",
"type": "string",
"enum": [
"COAL",
"OIL",
"GAS",
"NUCLEAR",
"BIOMASS",
"GEOTHERMAL",
"SOLAR",
"WIND",
"HYDRO",
"OTHER"
]
}Variants§
Trait Implementations§
Source§impl Clone for CtmNetworkGenItemPrimarySource
impl Clone for CtmNetworkGenItemPrimarySource
Source§fn clone(&self) -> CtmNetworkGenItemPrimarySource
fn clone(&self) -> CtmNetworkGenItemPrimarySource
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for CtmNetworkGenItemPrimarySource
impl<'de> Deserialize<'de> for CtmNetworkGenItemPrimarySource
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 From<&CtmNetworkGenItemPrimarySource> for CtmNetworkGenItemPrimarySource
impl From<&CtmNetworkGenItemPrimarySource> for CtmNetworkGenItemPrimarySource
Source§fn from(value: &CtmNetworkGenItemPrimarySource) -> Self
fn from(value: &CtmNetworkGenItemPrimarySource) -> Self
Converts to this type from the input type.
Source§impl Ord for CtmNetworkGenItemPrimarySource
impl Ord for CtmNetworkGenItemPrimarySource
Source§fn cmp(&self, other: &CtmNetworkGenItemPrimarySource) -> Ordering
fn cmp(&self, other: &CtmNetworkGenItemPrimarySource) -> Ordering
1.21.0§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CtmNetworkGenItemPrimarySource
impl PartialOrd for CtmNetworkGenItemPrimarySource
Source§impl TryFrom<&String> for CtmNetworkGenItemPrimarySource
impl TryFrom<&String> for CtmNetworkGenItemPrimarySource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for CtmNetworkGenItemPrimarySource
impl TryFrom<&str> for CtmNetworkGenItemPrimarySource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for CtmNetworkGenItemPrimarySource
impl TryFrom<String> for CtmNetworkGenItemPrimarySource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for CtmNetworkGenItemPrimarySource
impl Eq for CtmNetworkGenItemPrimarySource
impl StructuralPartialEq for CtmNetworkGenItemPrimarySource
Auto Trait Implementations§
impl Freeze for CtmNetworkGenItemPrimarySource
impl RefUnwindSafe for CtmNetworkGenItemPrimarySource
impl Send for CtmNetworkGenItemPrimarySource
impl Sync for CtmNetworkGenItemPrimarySource
impl Unpin for CtmNetworkGenItemPrimarySource
impl UnwindSafe for CtmNetworkGenItemPrimarySource
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)