mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +00:00
rustical_xml: Add new trait EnumVariants
This commit is contained in:
@@ -14,6 +14,7 @@ pub use se::XmlSerialize;
|
||||
pub use se::XmlSerializeRoot;
|
||||
pub use unparsed::Unparsed;
|
||||
pub use value::{ParseValueError, ValueDeserialize, ValueSerialize};
|
||||
pub use xml_derive::EnumVariants;
|
||||
pub use xml_derive::XmlRootTag;
|
||||
|
||||
pub trait XmlRootTag {
|
||||
@@ -21,3 +22,7 @@ pub trait XmlRootTag {
|
||||
fn root_ns() -> Option<Namespace<'static>>;
|
||||
fn root_ns_prefixes() -> HashMap<Namespace<'static>, &'static [u8]>;
|
||||
}
|
||||
|
||||
pub trait EnumVariants {
|
||||
const TAGGED_VARIANTS: &'static [(Option<Namespace<'static>>, &'static str)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user