pub struct JsonMessageLoader;Trait Implementations§
Source§impl MessageLoader for JsonMessageLoader
impl MessageLoader for JsonMessageLoader
const EXTENSION: &'static str = "json"
const NEST_VALUE_NAME: &'static str = "object"
type Value = Value
type NestValue = Map<String, Value>
fn value_to_nest(value: Self::Value) -> Option<Self::NestValue>
fn value_as_str(value: &Self::Value) -> Option<&str>
fn value_from_str(content: &str) -> Result<Self::Value, String>
fn iter_nested( value: Self::NestValue, ) -> impl Iterator<Item = (String, Self::Value)>
fn from_path(path: ArgPath) -> Vec<LangMessage>
fn from_file(file: PathBuf) -> Vec<LangMessage>
fn from_folder(folder: PathBuf) -> Vec<LangMessage>
fn internal( lang: &str, hierarchy: &mut Hierarchy<String>, value: Self::NestValue, ) -> Vec<Message>
Auto Trait Implementations§
impl Freeze for JsonMessageLoader
impl RefUnwindSafe for JsonMessageLoader
impl Send for JsonMessageLoader
impl Sync for JsonMessageLoader
impl Unpin for JsonMessageLoader
impl UnwindSafe for JsonMessageLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more