pub struct GetI18nConfigResponse {
pub available_locales: Vec<GetI18nConfigResponseAvailableLocalesItem>,
pub default_locale: GetI18nConfigResponseDefaultLocale,
pub enabled_locales: Vec<GetI18nConfigResponseEnabledLocalesItem>,
}Expand description
GetI18nConfigResponse
JSON schema
{
"type": "object",
"required": [
"availableLocales",
"defaultLocale",
"enabledLocales"
],
"properties": {
"availableLocales": {
"type": "array",
"items": {
"type": "string",
"enum": [
"en",
"de",
"es",
"fr",
"it",
"zh-CN"
]
}
},
"defaultLocale": {
"type": "string",
"enum": [
"en",
"de",
"es",
"fr",
"it",
"zh-CN"
]
},
"enabledLocales": {
"type": "array",
"items": {
"type": "string",
"enum": [
"en",
"de",
"es",
"fr",
"it",
"zh-CN"
]
}
}
}
}Fields§
§available_locales: Vec<GetI18nConfigResponseAvailableLocalesItem>§default_locale: GetI18nConfigResponseDefaultLocale§enabled_locales: Vec<GetI18nConfigResponseEnabledLocalesItem>Implementations§
Source§impl GetI18nConfigResponse
impl GetI18nConfigResponse
pub fn builder() -> GetI18nConfigResponse
Trait Implementations§
Source§impl Clone for GetI18nConfigResponse
impl Clone for GetI18nConfigResponse
Source§fn clone(&self) -> GetI18nConfigResponse
fn clone(&self) -> GetI18nConfigResponse
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 GetI18nConfigResponse
impl Debug for GetI18nConfigResponse
Source§impl<'de> Deserialize<'de> for GetI18nConfigResponse
impl<'de> Deserialize<'de> for GetI18nConfigResponse
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
Source§impl From<&GetI18nConfigResponse> for GetI18nConfigResponse
impl From<&GetI18nConfigResponse> for GetI18nConfigResponse
Source§fn from(value: &GetI18nConfigResponse) -> Self
fn from(value: &GetI18nConfigResponse) -> Self
Converts to this type from the input type.
Source§impl From<GetI18nConfigResponse> for GetI18nConfigResponse
impl From<GetI18nConfigResponse> for GetI18nConfigResponse
Source§fn from(value: GetI18nConfigResponse) -> Self
fn from(value: GetI18nConfigResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for GetI18nConfigResponse
impl Serialize for GetI18nConfigResponse
Source§impl TryFrom<GetI18nConfigResponse> for GetI18nConfigResponse
impl TryFrom<GetI18nConfigResponse> for GetI18nConfigResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetI18nConfigResponse) -> Result<Self, ConversionError>
fn try_from(value: GetI18nConfigResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetI18nConfigResponse
impl RefUnwindSafe for GetI18nConfigResponse
impl Send for GetI18nConfigResponse
impl Sync for GetI18nConfigResponse
impl Unpin for GetI18nConfigResponse
impl UnsafeUnpin for GetI18nConfigResponse
impl UnwindSafe for GetI18nConfigResponse
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