pub struct ProfileRequirement {
pub message_type: &'static str,
pub label: &'static str,
}Expand description
A single profile requirement declared by a domain module.
The engine builder validates that at least one active profile satisfying
this requirement exists in the edi-energy registry.
Domain crates return a &'static [ProfileRequirement] slice from
EngineModule::profile_requirements — no edi-energy import required.
Fields§
§message_type: &'static strEDIFACT message type identifier, e.g. "UTILMD", "APERAK", "MSCONS".
Must match the value that edi_energy::MessageType::as_str() (or
equivalent) returns for the relevant profile.
label: &'static strHuman-readable label used in error messages.
Example: "UTILMD Strom (GPKE)".
Trait Implementations§
Source§impl Clone for ProfileRequirement
impl Clone for ProfileRequirement
Source§fn clone(&self) -> ProfileRequirement
fn clone(&self) -> ProfileRequirement
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 moreimpl Copy for ProfileRequirement
Source§impl Debug for ProfileRequirement
impl Debug for ProfileRequirement
impl Eq for ProfileRequirement
Source§impl PartialEq for ProfileRequirement
impl PartialEq for ProfileRequirement
Source§fn eq(&self, other: &ProfileRequirement) -> bool
fn eq(&self, other: &ProfileRequirement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProfileRequirement
Auto Trait Implementations§
impl Freeze for ProfileRequirement
impl RefUnwindSafe for ProfileRequirement
impl Send for ProfileRequirement
impl Sync for ProfileRequirement
impl Unpin for ProfileRequirement
impl UnsafeUnpin for ProfileRequirement
impl UnwindSafe for ProfileRequirement
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