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