diff options
Diffstat (limited to 'src/meta.rs')
| -rw-r--r-- | src/meta.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/meta.rs b/src/meta.rs index 45c90f1..9ff2712 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -23,9 +23,9 @@ use std::collections::HashMap; #[derive(Debug)] pub struct Meta { /// The mime type of a Gemini response - pub mime: String, + mime: String, /// The parameters of a Gemini response - pub parameters: HashMap<String, String>, + parameters: HashMap<String, String>, } impl Meta { #[must_use] @@ -50,4 +50,12 @@ impl Meta { parameters, } } + + #[must_use] + pub fn mime(&self) -> &str { &self.mime } + + #[must_use] + pub const fn parameters(&self) -> &HashMap<String, String> { + &self.parameters + } } |