pub struct CultureContext {
pub calendar: Annotated<String>,
pub display_name: Annotated<String>,
pub locale: Annotated<String>,
pub is_24_hour_format: Annotated<bool>,
pub timezone: Annotated<String>,
pub other: Object<Value>,
}Expand description
Culture information.
Culture context describes the cultural properties relevant to how software is used in specific regions or locales.
Fields§
§calendar: Annotated<String>The calendar system in use.
For example, GregorianCalendar.
display_name: Annotated<String>Human-readable name of the culture.
For example, English (United States).
locale: Annotated<String>The name identifier, usually following the RFC 4646.
For example, en-US or pt-BR.
is_24_hour_format: Annotated<bool>Whether the locale uses 24-hour time format.
timezone: Annotated<String>The timezone of the locale.
For example, Europe/Vienna.
other: Object<Value>Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl Clone for CultureContext
impl Clone for CultureContext
Source§fn clone(&self) -> CultureContext
fn clone(&self) -> CultureContext
Returns a duplicate of the value. Read more
1.0.0 · 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 CultureContext
impl Debug for CultureContext
Source§impl Default for CultureContext
impl Default for CultureContext
Source§fn default() -> CultureContext
fn default() -> CultureContext
Returns the “default value” for a type. Read more
Source§impl DefaultContext for CultureContext
impl DefaultContext for CultureContext
Source§fn default_key() -> &'static str
fn default_key() -> &'static str
The default key at which this context resides in
Contexts.Source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
Converts this context type from a generic context type. Read more
Source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
Casts a reference to this context type from a generic context type. Read more
Source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
Casts a mutable reference to this context type from a generic context type. Read more
Source§fn into_context(self) -> Context
fn into_context(self) -> Context
Boxes this context type in the generic context wrapper. Read more
Source§impl Empty for CultureContext
impl Empty for CultureContext
Source§impl FromObjectRef for CultureContext
impl FromObjectRef for CultureContext
Source§impl FromValue for CultureContext
impl FromValue for CultureContext
Source§impl IntoObjectRef for CultureContext
impl IntoObjectRef for CultureContext
Source§impl IntoValue for CultureContext
impl IntoValue for CultureContext
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
Source§impl PartialEq for CultureContext
impl PartialEq for CultureContext
Source§impl ProcessValue for CultureContext
impl ProcessValue for CultureContext
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
Source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
Source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for CultureContext
Auto Trait Implementations§
impl Freeze for CultureContext
impl RefUnwindSafe for CultureContext
impl Send for CultureContext
impl Sync for CultureContext
impl Unpin for CultureContext
impl UnwindSafe for CultureContext
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