Struct json_gettext::JSONGetTextBuilder [−][src]
pub struct JSONGetTextBuilder<'a> { /* fields omitted */ }
Expand description
To build a JSONGetText instance, this struct can help you do that step by step.
Implementations
Create a new JSONGetTextBuilder
instance. You need to decide your default key at the stage.
Add a JSON string to the context for a specify key. The JSON string must represent a map object (key-value).
Add a JSON string to the context for a specify key. The JSON string must represent a map object (key-value).
Add a JSON file to the context for a specify key. The JSON file must represent a map object (key-value).
pub fn add_serialize<K: AsRef<str> + Into<String>, S: Serialize>(
&mut self,
key: K,
value: S
) -> Result<&mut Self, JSONGetTextBuildError>
pub fn add_serialize<K: AsRef<str> + Into<String>, S: Serialize>(
&mut self,
key: K,
value: S
) -> Result<&mut Self, JSONGetTextBuildError>
Add any serializable value to the context for a specify key. The value must represent a map object (key-value).
Add a map to the context.
Build a JSONGetText
instance.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for JSONGetTextBuilder<'a>
impl<'a> Send for JSONGetTextBuilder<'a>
impl<'a> Sync for JSONGetTextBuilder<'a>
impl<'a> Unpin for JSONGetTextBuilder<'a>
impl<'a> UnwindSafe for JSONGetTextBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more