#[non_exhaustive]pub struct NumericFormatConfiguration {
pub number_display_format_configuration: Option<NumberDisplayFormatConfiguration>,
pub currency_display_format_configuration: Option<CurrencyDisplayFormatConfiguration>,
pub percentage_display_format_configuration: Option<PercentageDisplayFormatConfiguration>,
}
Expand description
The options that determine the numeric format configuration.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.number_display_format_configuration: Option<NumberDisplayFormatConfiguration>
The options that determine the number display format configuration.
currency_display_format_configuration: Option<CurrencyDisplayFormatConfiguration>
The options that determine the currency display format configuration.
percentage_display_format_configuration: Option<PercentageDisplayFormatConfiguration>
The options that determine the percentage display format configuration.
Implementations§
source§impl NumericFormatConfiguration
impl NumericFormatConfiguration
sourcepub fn number_display_format_configuration(
&self
) -> Option<&NumberDisplayFormatConfiguration>
pub fn number_display_format_configuration( &self ) -> Option<&NumberDisplayFormatConfiguration>
The options that determine the number display format configuration.
sourcepub fn currency_display_format_configuration(
&self
) -> Option<&CurrencyDisplayFormatConfiguration>
pub fn currency_display_format_configuration( &self ) -> Option<&CurrencyDisplayFormatConfiguration>
The options that determine the currency display format configuration.
sourcepub fn percentage_display_format_configuration(
&self
) -> Option<&PercentageDisplayFormatConfiguration>
pub fn percentage_display_format_configuration( &self ) -> Option<&PercentageDisplayFormatConfiguration>
The options that determine the percentage display format configuration.
source§impl NumericFormatConfiguration
impl NumericFormatConfiguration
sourcepub fn builder() -> NumericFormatConfigurationBuilder
pub fn builder() -> NumericFormatConfigurationBuilder
Creates a new builder-style object to manufacture NumericFormatConfiguration
.
Trait Implementations§
source§impl Clone for NumericFormatConfiguration
impl Clone for NumericFormatConfiguration
source§fn clone(&self) -> NumericFormatConfiguration
fn clone(&self) -> NumericFormatConfiguration
Returns a copy 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 NumericFormatConfiguration
impl Debug for NumericFormatConfiguration
source§impl PartialEq for NumericFormatConfiguration
impl PartialEq for NumericFormatConfiguration
source§fn eq(&self, other: &NumericFormatConfiguration) -> bool
fn eq(&self, other: &NumericFormatConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NumericFormatConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for NumericFormatConfiguration
impl Send for NumericFormatConfiguration
impl Sync for NumericFormatConfiguration
impl Unpin for NumericFormatConfiguration
impl UnwindSafe for NumericFormatConfiguration
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.