pub struct MarktpartnerCode(/* private fields */);Expand description
Market-participant identifier (Marktpartner-Code).
Identifies a trading partner in the German energy market. Three code schemes are in active use:
| Scheme | Digits | EDIFACT DE 3055 | Typical holders |
|---|---|---|---|
| BDEW code | 13 numeric | "293" | Suppliers (LFN), DSOs (NB/VNB), MSBs, BKVs — the dominant scheme |
| GLN (GS1) | 13 numeric | "9" | Global GS1 scheme; rare in German MaKo |
| EIC (ENTSO-E) | 16 alphanumeric | "305" | TSOs (ÜNB), Regelzonen, cross-border |
Used as sender and receiver in EDIFACT message headers and as
domain party identifiers in all MaKo process commands. The numeric
value is stored without the agency qualifier — use
edi_energy::AgencyCode when rendering outbound NAD segments.
Marktpartner-Code — BDEW code (293), GS1 GLN (9), or EIC (305) market-participant identifier
Implementations§
Trait Implementations§
Source§impl AsRef<str> for MarktpartnerCode
impl AsRef<str> for MarktpartnerCode
Source§impl Clone for MarktpartnerCode
impl Clone for MarktpartnerCode
Source§fn clone(&self) -> MarktpartnerCode
fn clone(&self) -> MarktpartnerCode
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 MarktpartnerCode
impl Debug for MarktpartnerCode
Source§impl<'de> Deserialize<'de> for MarktpartnerCode
impl<'de> Deserialize<'de> for MarktpartnerCode
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 Display for MarktpartnerCode
impl Display for MarktpartnerCode
impl Eq for MarktpartnerCode
Source§impl From<&str> for MarktpartnerCode
impl From<&str> for MarktpartnerCode
Source§impl From<MarktpartnerCode> for String
impl From<MarktpartnerCode> for String
Source§fn from(id: MarktpartnerCode) -> Self
fn from(id: MarktpartnerCode) -> Self
Converts to this type from the input type.
Source§impl From<String> for MarktpartnerCode
impl From<String> for MarktpartnerCode
Source§impl Hash for MarktpartnerCode
impl Hash for MarktpartnerCode
Source§impl Ord for MarktpartnerCode
impl Ord for MarktpartnerCode
Source§fn cmp(&self, other: &MarktpartnerCode) -> Ordering
fn cmp(&self, other: &MarktpartnerCode) -> Ordering
1.21.0 (const: unstable) · 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 for MarktpartnerCode
impl PartialEq for MarktpartnerCode
Source§fn eq(&self, other: &MarktpartnerCode) -> bool
fn eq(&self, other: &MarktpartnerCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MarktpartnerCode
impl PartialOrd for MarktpartnerCode
Source§impl Serialize for MarktpartnerCode
impl Serialize for MarktpartnerCode
impl StructuralPartialEq for MarktpartnerCode
Auto Trait Implementations§
impl Freeze for MarktpartnerCode
impl RefUnwindSafe for MarktpartnerCode
impl Send for MarktpartnerCode
impl Sync for MarktpartnerCode
impl Unpin for MarktpartnerCode
impl UnsafeUnpin for MarktpartnerCode
impl UnwindSafe for MarktpartnerCode
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