make members public (in lib context)

This commit is contained in:
yggverse 2024-10-12 09:05:17 +03:00
parent 9cf434fdab
commit d0acac1686

View File

@ -7,8 +7,8 @@ pub enum Level {
}
pub struct Header {
value: GString,
level: Level,
pub value: GString,
pub level: Level,
}
impl Header {
@ -44,12 +44,4 @@ impl Header {
value: GString::from(value.as_str()),
})
}
pub fn level(&self) -> &Level {
&self.level
}
pub fn value(&self) -> &str {
self.value.as_str()
}
}