pub enum Document {
Activation(Box<ActivationDocument>),
PlannedResourceSchedule(Box<PlannedResourceScheduleDocument>),
Acknowledgement(Box<AcknowledgementDocument>),
Stammdaten(Box<Stammdaten>),
StatusRequest(Box<StatusRequestMarketDocument>),
Unavailability(Box<UnavailabilityMarketDocument>),
Kaskade(Box<Kaskade>),
NetworkConstraint(Box<NetworkConstraintDocument>),
Kostenblatt(Box<Kostenblatt>),
}Expand description
A parsed Redispatch 2.0 document (any of the nine supported types).
Variants§
Activation(Box<ActivationDocument>)
Activation document (ActivationDocument): ACO, ACR, or AAR.
PlannedResourceSchedule(Box<PlannedResourceScheduleDocument>)
Planned resource schedule document (PlannedResourceScheduleDocument).
Acknowledgement(Box<AcknowledgementDocument>)
Acknowledgement document (AcknowledgementDocument).
Stammdaten(Box<Stammdaten>)
Stammdaten (master data) document.
StatusRequest(Box<StatusRequestMarketDocument>)
Status request market document (StatusRequest_MarketDocument).
Unavailability market document (Unavailability_MarketDocument).
Kaskade(Box<Kaskade>)
Kaskade (cascade) document.
NetworkConstraint(Box<NetworkConstraintDocument>)
Network constraint document (NetworkConstraintDocument).
Kostenblatt(Box<Kostenblatt>)
Kostenblatt (cost sheet) document.
Implementations§
Source§impl Document
impl Document
Sourcepub fn document_type(&self) -> DocumentType
pub fn document_type(&self) -> DocumentType
Return the DocumentType variant for this document.
Sourcepub fn mrid(&self) -> &str
pub fn mrid(&self) -> &str
Return the document’s primary identifier (mRID or DocumentIdentification).
This is the correlation key used by the process engine to route inbound documents to the correct workflow instance.
Sourcepub fn receiver_id(&self) -> &str
pub fn receiver_id(&self) -> &str
Return the 13-digit GLN / EIC of the document receiver.