Enum sep2_common::packages::types::PrimacyType
source · #[repr(u8)]pub enum PrimacyType {
InHomeEnergyManagementSystem = 0,
ContractedPremisesServiceProvider = 1,
NonContractualServiceProvider = 2,
}
Variants§
InHomeEnergyManagementSystem = 0
ContractedPremisesServiceProvider = 1
NonContractualServiceProvider = 2
Trait Implementations§
source§impl Clone for PrimacyType
impl Clone for PrimacyType
source§fn clone(&self) -> PrimacyType
fn clone(&self) -> PrimacyType
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 PrimacyType
impl Debug for PrimacyType
source§impl Default for PrimacyType
impl Default for PrimacyType
source§fn default() -> PrimacyType
fn default() -> PrimacyType
Returns the “default value” for a type. Read more
source§impl Ord for PrimacyType
impl Ord for PrimacyType
source§fn cmp(&self, other: &PrimacyType) -> Ordering
fn cmp(&self, other: &PrimacyType) -> 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<PrimacyType> for PrimacyType
impl PartialEq<PrimacyType> for PrimacyType
source§fn eq(&self, other: &PrimacyType) -> bool
fn eq(&self, other: &PrimacyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PrimacyType> for PrimacyType
impl PartialOrd<PrimacyType> for PrimacyType
source§fn partial_cmp(&self, other: &PrimacyType) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimacyType) -> 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 PrimacyType
impl YaDeserialize for PrimacyType
source§impl YaSerialize for PrimacyType
impl YaSerialize for PrimacyType
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 PrimacyType
impl Eq for PrimacyType
impl StructuralEq for PrimacyType
impl StructuralPartialEq for PrimacyType
Auto Trait Implementations§
impl RefUnwindSafe for PrimacyType
impl Send for PrimacyType
impl Sync for PrimacyType
impl Unpin for PrimacyType
impl UnwindSafe for PrimacyType
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