Enum sep2_common::packages::pricing::CostKindType
source · #[repr(u8)]pub enum CostKindType {
CarbonDioxide = 0,
SulfurDioxide = 1,
NitrogenOxide = 2,
RenewablePercentage = 3,
}
Available on crate feature
pricing
only.Variants§
CarbonDioxide = 0
Carbon Dioxide emissions, in grams per unit
SulfurDioxide = 1
Sulfur Dioxide emissions, in grams per unit
NitrogenOxide = 2
Nitrogen Oxides emissions, in grams per unit
RenewablePercentage = 3
Renewable generation, as a percentage of overall generation
Trait Implementations§
source§impl Clone for CostKindType
impl Clone for CostKindType
source§fn clone(&self) -> CostKindType
fn clone(&self) -> CostKindType
Returns a copy 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 CostKindType
impl Debug for CostKindType
source§impl Default for CostKindType
impl Default for CostKindType
source§fn default() -> CostKindType
fn default() -> CostKindType
Returns the “default value” for a type. Read more
source§impl PartialEq<CostKindType> for CostKindType
impl PartialEq<CostKindType> for CostKindType
source§fn eq(&self, other: &CostKindType) -> bool
fn eq(&self, other: &CostKindType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl YaDeserialize for CostKindType
impl YaDeserialize for CostKindType
source§impl YaSerialize for CostKindType
impl YaSerialize for CostKindType
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Copy for CostKindType
impl Eq for CostKindType
impl StructuralEq for CostKindType
impl StructuralPartialEq for CostKindType
Auto Trait Implementations§
impl RefUnwindSafe for CostKindType
impl Send for CostKindType
impl Sync for CostKindType
impl Unpin for CostKindType
impl UnwindSafe for CostKindType
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