pub struct AdminGetI18nResponse {
pub available_locales: Vec<AdminGetI18nResponseAvailableLocalesItem>,
pub default_locale: AdminGetI18nResponseDefaultLocale,
pub enabled_locales: Vec<AdminGetI18nResponseEnabledLocalesItem>,
}Expand description
AdminGetI18nResponse
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<AdminGetI18nResponseAvailableLocalesItem>§default_locale: AdminGetI18nResponseDefaultLocale§enabled_locales: Vec<AdminGetI18nResponseEnabledLocalesItem>Implementations§
Source§impl AdminGetI18nResponse
impl AdminGetI18nResponse
pub fn builder() -> AdminGetI18nResponse
Trait Implementations§
Source§impl Clone for AdminGetI18nResponse
impl Clone for AdminGetI18nResponse
Source§fn clone(&self) -> AdminGetI18nResponse
fn clone(&self) -> AdminGetI18nResponse
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 AdminGetI18nResponse
impl Debug for AdminGetI18nResponse
Source§impl<'de> Deserialize<'de> for AdminGetI18nResponse
impl<'de> Deserialize<'de> for AdminGetI18nResponse
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<&AdminGetI18nResponse> for AdminGetI18nResponse
impl From<&AdminGetI18nResponse> for AdminGetI18nResponse
Source§fn from(value: &AdminGetI18nResponse) -> Self
fn from(value: &AdminGetI18nResponse) -> Self
Converts to this type from the input type.
Source§impl From<AdminGetI18nResponse> for AdminGetI18nResponse
impl From<AdminGetI18nResponse> for AdminGetI18nResponse
Source§fn from(value: AdminGetI18nResponse) -> Self
fn from(value: AdminGetI18nResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for AdminGetI18nResponse
impl Serialize for AdminGetI18nResponse
Source§impl TryFrom<AdminGetI18nResponse> for AdminGetI18nResponse
impl TryFrom<AdminGetI18nResponse> for AdminGetI18nResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AdminGetI18nResponse) -> Result<Self, ConversionError>
fn try_from(value: AdminGetI18nResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AdminGetI18nResponse
impl RefUnwindSafe for AdminGetI18nResponse
impl Send for AdminGetI18nResponse
impl Sync for AdminGetI18nResponse
impl Unpin for AdminGetI18nResponse
impl UnsafeUnpin for AdminGetI18nResponse
impl UnwindSafe for AdminGetI18nResponse
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