pub enum DocumentType {
Activation,
PlannedResourceSchedule,
Acknowledgement,
Stammdaten,
StatusRequest,
Unavailability,
Kaskade,
NetworkConstraint,
Kostenblatt,
}Expand description
The set of all supported Redispatch 2.0 document types.
Used by crate::detect to identify the type of a document
from its root element name, and as the variant discriminant for
crate::Document.
Variants§
Activation
ActivationDocument (ACO/ACR/AAR).
PlannedResourceSchedule
PlannedResourceScheduleDocument.
Acknowledgement
AcknowledgementDocument.
Stammdaten
Stammdaten.
StatusRequest
StatusRequest_MarketDocument.
Unavailability_MarketDocument.
Kaskade
Kaskade.
NetworkConstraint
NetworkConstraintDocument.
Kostenblatt
Kostenblatt.
Implementations§
Source§impl DocumentType
impl DocumentType
Sourcepub fn root_element_name(self) -> &'static str
pub fn root_element_name(self) -> &'static str
Return the XML root element name for this document type.
Sourcepub fn expected_namespace(self) -> Option<&'static str>
pub fn expected_namespace(self) -> Option<&'static str>
Return the expected XML namespace URI for this document type, if any.
Sourcepub fn from_root_element(name: &str) -> Option<Self>
pub fn from_root_element(name: &str) -> Option<Self>
Attempt to identify the document type from the root element local name.
Returns None if the name is not a recognised Redispatch 2.0 root
element.
Trait Implementations§
Source§impl Clone for DocumentType
impl Clone for DocumentType
Source§fn clone(&self) -> DocumentType
fn clone(&self) -> DocumentType
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 DocumentType
Source§impl Debug for DocumentType
impl Debug for DocumentType
impl Eq for DocumentType
Source§impl Hash for DocumentType
impl Hash for DocumentType
Source§impl PartialEq for DocumentType
impl PartialEq for DocumentType
Source§fn eq(&self, other: &DocumentType) -> bool
fn eq(&self, other: &DocumentType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentType
Auto Trait Implementations§
impl Freeze for DocumentType
impl RefUnwindSafe for DocumentType
impl Send for DocumentType
impl Sync for DocumentType
impl Unpin for DocumentType
impl UnsafeUnpin for DocumentType
impl UnwindSafe for DocumentType
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