Struct json_gettext::JSONGetText[][src]

pub struct JSONGetText<'a> { /* fields omitted */ }

A wrapper for context and a default key. Keys are usually considered as locales.

Methods

impl<'a> JSONGetText<'a>
[src]

Create a new JSONGetTextBuilder instance. You need to decide your default key at the stage.

Create a new JSONGetText instance with context and a default key.

Get all keys in context.

Get the default key.

Get a string map from context by a key.

Get text from context.

Get text from context with a specific key.

Get filtered text from context by a Regex instance. The output map is usually used for serialization.

Get filtered text from context with a specific key by a Regex instance. The output map is usually used for serialization.

Trait Implementations

impl<'a> Debug for JSONGetText<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for JSONGetText<'a>

impl<'a> Sync for JSONGetText<'a>