pub struct LocalizedString {
pub value: HashMap<String, String>,
}Expand description
Localized string dictionary.
This matches the dashboard convention: `{ [locale: string]: string }`.
Notes:
- Internally this is keyed by `icu_locale_core::Locale` for type-safety.
- For JSON/OpenAPI purposes this is treated as a `{ [locale: string]: string }` object.JSON schema
{
"description": "Localized string dictionary.\n\nThis matches the dashboard convention: `{ [locale: string]: string }`.\n\nNotes:\n- Internally this is keyed by `icu_locale_core::Locale` for type-safety.\n- For JSON/OpenAPI purposes this is treated as a `{ [locale: string]: string }` object.",
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"description": "OpenAPI representation: `HashMap<String, String>` (JSON object).",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}Fields§
§value: HashMap<String, String>OpenAPI representation: HashMap<String, String> (JSON object).
Trait Implementations§
Source§impl Clone for LocalizedString
impl Clone for LocalizedString
Source§fn clone(&self) -> LocalizedString
fn clone(&self) -> LocalizedString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalizedString
impl Debug for LocalizedString
Source§impl<'de> Deserialize<'de> for LocalizedString
impl<'de> Deserialize<'de> for LocalizedString
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LocalizedString
impl RefUnwindSafe for LocalizedString
impl Send for LocalizedString
impl Sync for LocalizedString
impl Unpin for LocalizedString
impl UnsafeUnpin for LocalizedString
impl UnwindSafe for LocalizedString
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