pub struct CultureSection {
pub default: String,
}Expand description
Culture / localization section.
The default UI culture is a host-wide setting: endpoint names, OpenAPI, and permission synchronization use it unless a caller explicitly passes another culture. Request-header negotiation is deliberately not part of this: administrative output must not change with the caller’s browser language.
Fields§
§default: StringDefault BCP-47 culture, e.g. "zh-CN" or "en". Default: "en".
Trait Implementations§
Source§impl Clone for CultureSection
impl Clone for CultureSection
Source§fn clone(&self) -> CultureSection
fn clone(&self) -> CultureSection
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 CultureSection
impl Debug for CultureSection
Source§impl Default for CultureSection
impl Default for CultureSection
Source§fn default() -> CultureSection
fn default() -> CultureSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CultureSection
impl<'de> Deserialize<'de> for CultureSection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CultureSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CultureSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CultureSection
impl Freeze for CultureSection
impl Move for CultureSection
impl RefUnwindSafe for CultureSection
impl Send for CultureSection
impl Sync for CultureSection
impl Unpin for CultureSection
impl UnsafeUnpin for CultureSection
impl UnwindSafe for CultureSection
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