diff options
author | 2024-11-24 02:05:41 +0000 | |
---|---|---|
committer | 2024-11-24 02:05:41 +0000 | |
commit | 87e6ff405b0d687ed341f304fba7c5b391a49359 (patch) | |
tree | f56ddd5271fb2bb104f641c035e58a744038f5cf /src/declaration.rs | |
parent | c1e6f7e918eacaad9c8b1a4b27fcd4d6245aaf68 (diff) | |
download | peanuts-87e6ff405b0d687ed341f304fba7c5b391a49359.tar.gz peanuts-87e6ff405b0d687ed341f304fba7c5b391a49359.tar.bz2 peanuts-87e6ff405b0d687ed341f304fba7c5b391a49359.zip |
misc
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, + } + } +} |