pub enum EMLVersion {
V1_2_2,
V1_3,
V1_3_1,
}Expand description
Describes the EML_NL version of the EML standard.
Since EML 1.3, EML_NL adds a kr:Schema element within the top level
element to indicate the specific EML_NL schema version in use. If this
element is not present, the legacy unversioned EML_NL schema is assumed,
in practice this means that this document should follow the EML_NL 1.2.2
schema.
Note: newer EML_NL version must always be appended at the end of this enum.
Variants§
V1_2_2
A legacy unversioned EML_NL document, assumed to follow EML_NL 1.2.2
V1_3
An EML_NL version 1.3 document
V1_3_1
An EML_NL version 1.3.1 document
Implementations§
Source§impl EMLVersion
impl EMLVersion
Sourcepub const EML_NAME: QualifiedName<'_, '_>
pub const EML_NAME: QualifiedName<'_, '_>
Name of the element that is used to indicate the EML_NL schema version.
Sourcepub fn to_str(&self) -> Option<&'static str>
pub fn to_str(&self) -> Option<&'static str>
Returns the string representation of this EML version, if one is known.
Returns None for EMLVersion::V1_2_2.
Trait Implementations§
Source§impl Clone for EMLVersion
impl Clone for EMLVersion
impl Copy for EMLVersion
Source§impl Debug for EMLVersion
impl Debug for EMLVersion
Source§impl Default for EMLVersion
impl Default for EMLVersion
Source§impl Display for EMLVersion
impl Display for EMLVersion
impl Eq for EMLVersion
Source§impl FromStr for EMLVersion
impl FromStr for EMLVersion
Source§impl Hash for EMLVersion
impl Hash for EMLVersion
Source§impl Ord for EMLVersion
impl Ord for EMLVersion
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EMLVersion
impl PartialEq for EMLVersion
Source§impl PartialOrd for EMLVersion
impl PartialOrd for EMLVersion
impl StructuralPartialEq for EMLVersion
Auto Trait Implementations§
impl Freeze for EMLVersion
impl RefUnwindSafe for EMLVersion
impl Send for EMLVersion
impl Sync for EMLVersion
impl Unpin for EMLVersion
impl UnsafeUnpin for EMLVersion
impl UnwindSafe for EMLVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CustomError for T
Source§impl<T> EMLRead for Twhere
T: EMLReadElement + 'static,
impl<T> EMLRead for Twhere
T: EMLReadElement + 'static,
Source§fn parse_eml(input: &str, parsing_mode: EMLParsingMode) -> EMLReadResult<T>where
T: Sized + 'static,
fn parse_eml(input: &str, parsing_mode: EMLParsingMode) -> EMLReadResult<T>where
T: Sized + 'static,
Parse an EML document from the given string slice. Read more
Source§fn parse_eml_fragment(
input: &str,
parsing_mode: EMLParsingMode,
document_version: EMLVersion,
) -> EMLReadResult<T>where
T: Sized + 'static,
fn parse_eml_fragment(
input: &str,
parsing_mode: EMLParsingMode,
document_version: EMLVersion,
) -> EMLReadResult<T>where
T: Sized + 'static,
Parse an EML fragment from the given string slice, using the specified
parsing mode and document version.