Enum sep2_common::packages::types::CommodityType
source · pub enum CommodityType {
NotApplicable = 0,
ElectricitySecondaryMetered = 1,
ElectricityPrimaryMetered = 2,
Air = 4,
NaturalGas = 7,
Propane = 8,
PotableWater = 9,
Steam = 10,
WasteWater = 11,
HeatingFluid = 12,
CoolingFluid = 13,
}
Variants§
NotApplicable = 0
ElectricitySecondaryMetered = 1
ElectricityPrimaryMetered = 2
Air = 4
NaturalGas = 7
Propane = 8
PotableWater = 9
Steam = 10
WasteWater = 11
HeatingFluid = 12
CoolingFluid = 13
Trait Implementations§
source§impl Clone for CommodityType
impl Clone for CommodityType
source§fn clone(&self) -> CommodityType
fn clone(&self) -> CommodityType
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 CommodityType
impl Debug for CommodityType
source§impl Default for CommodityType
impl Default for CommodityType
source§fn default() -> CommodityType
fn default() -> CommodityType
Returns the “default value” for a type. Read more
source§impl Ord for CommodityType
impl Ord for CommodityType
source§fn cmp(&self, other: &CommodityType) -> Ordering
fn cmp(&self, other: &CommodityType) -> Ordering
1.21.0 · source§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 PartialEq<CommodityType> for CommodityType
impl PartialEq<CommodityType> for CommodityType
source§fn eq(&self, other: &CommodityType) -> bool
fn eq(&self, other: &CommodityType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CommodityType> for CommodityType
impl PartialOrd<CommodityType> for CommodityType
source§fn partial_cmp(&self, other: &CommodityType) -> Option<Ordering>
fn partial_cmp(&self, other: &CommodityType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl YaDeserialize for CommodityType
impl YaDeserialize for CommodityType
source§impl YaSerialize for CommodityType
impl YaSerialize for CommodityType
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 CommodityType
impl Eq for CommodityType
impl StructuralEq for CommodityType
impl StructuralPartialEq for CommodityType
Auto Trait Implementations§
impl RefUnwindSafe for CommodityType
impl Send for CommodityType
impl Sync for CommodityType
impl Unpin for CommodityType
impl UnwindSafe for CommodityType
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