diff options
Diffstat (limited to 'src/declaration.rs')
-rw-r--r-- | src/declaration.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/declaration.rs b/src/declaration.rs new file mode 100644 index 0000000..2c0855f --- /dev/null +++ b/src/declaration.rs @@ -0,0 +1,21 @@ +pub struct Declaration { + pub version_info: VersionInfo, + pub encoding_decl: Option<String>, + pub sd_decl: Option<bool>, +} + +#[derive(Clone, Copy)] +pub enum VersionInfo { + One, + OneDotOne, +} + +impl Declaration { + pub fn version(version: VersionInfo) -> Self { + Self { + version_info: version, + encoding_decl: None, + sd_decl: None, + } + } +} |