Struct json_gettext::JSONGetText[][src]

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

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

Implementations

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

Get all keys in context.

Returns true if the context contains a value for the specified key.

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 multiple text from context. The output map is usually used for serialization.

Get multiple text from context with a specific key. The output map is usually used for serialization.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.