pub struct MarketParticipant {
pub meta: Bo4eMeta,
pub market_partner_id: Option<String>,
pub name: Option<String>,
pub market_role: Option<MarketRole>,
pub division: Option<Division>,
pub address: Option<Address>,
pub contact_methods: Vec<ContactMethod>,
pub business_partner: Option<Box<BusinessPartner>>,
}Expand description
A market participant in the energy market.
German: Marktteilnehmer
§Example
use bo4e_core::bo::MarketParticipant;
use bo4e_core::enums::{Division, MarketRole};
let participant = MarketParticipant {
market_partner_id: Some("9900000000001".to_string()),
market_role: Some(MarketRole::Supplier),
division: Some(Division::Electricity),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
market_partner_id: Option<String>Market partner ID (Marktpartner-ID) - typically BDEW code number
name: Option<String>Name of the market participant (Name)
market_role: Option<MarketRole>Market role (Marktrolle)
division: Option<Division>Energy division (Sparte)
address: Option<Address>Primary address (Adresse)
contact_methods: Vec<ContactMethod>Contact methods (Kontaktwege)
business_partner: Option<Box<BusinessPartner>>Associated business partner (Geschaeftspartner)
Trait Implementations§
Source§impl Bo4eObject for MarketParticipant
impl Bo4eObject for MarketParticipant
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for MarketParticipant
impl Clone for MarketParticipant
Source§fn clone(&self) -> MarketParticipant
fn clone(&self) -> MarketParticipant
Returns a duplicate 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 MarketParticipant
impl Debug for MarketParticipant
Source§impl Default for MarketParticipant
impl Default for MarketParticipant
Source§fn default() -> MarketParticipant
fn default() -> MarketParticipant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarketParticipant
impl<'de> Deserialize<'de> for MarketParticipant
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 PartialEq for MarketParticipant
impl PartialEq for MarketParticipant
Source§impl Serialize for MarketParticipant
impl Serialize for MarketParticipant
impl StructuralPartialEq for MarketParticipant
Auto Trait Implementations§
impl Freeze for MarketParticipant
impl RefUnwindSafe for MarketParticipant
impl Send for MarketParticipant
impl Sync for MarketParticipant
impl Unpin for MarketParticipant
impl UnsafeUnpin for MarketParticipant
impl UnwindSafe for MarketParticipant
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