json_gettext/common/
mod.rs1mod json_get_text_builder;
2mod json_gettext;
3
4#[cfg(feature = "rocket")]
5mod rocket_feature;
6
7use std::collections::HashMap;
8
9pub use json_get_text_builder::*;
10#[cfg(feature = "rocket")]
11pub use rocket_feature::*;
12
13pub use self::json_gettext::*;
14use crate::JSONGetTextValue;
15
16pub type Context<'a> = HashMap<crate::Key, HashMap<String, JSONGetTextValue<'a>>>;
18
19pub trait LookupKey {
23 fn lookup<'m, V>(&self, map: &'m HashMap<crate::Key, V>) -> Option<&'m V>;
24}
25
26pub trait IntoKey {
30 fn into_key(self) -> crate::Key;
31}