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§impl Debug for CultureSection
impl Debug for CultureSection
Source§impl Default for CultureSection
impl Default for CultureSection
Source§impl<'de> Deserialize<'de> for CultureSection
impl<'de> Deserialize<'de> for CultureSection
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 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