diff --git a/components/decimal/src/provider.rs b/components/decimal/src/provider.rs index 8c5481da5dc..ffc928bddae 100644 --- a/components/decimal/src/provider.rs +++ b/components/decimal/src/provider.rs @@ -56,9 +56,9 @@ pub const MARKERS: &[DataMarkerInfo] = &[DecimalSymbolsV1Marker::INFO]; /// to be stable, their Rust representation might not be. Use with caution. /// #[derive(Debug, PartialEq, Clone, yoke::Yokeable, Copy, zerofrom::ZeroFrom)] +#[cfg_attr(feature = "serde", derive(serde::Deserialize))] #[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))] #[cfg_attr(feature = "datagen", databake(path = icu_decimal::provider))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] pub struct GroupingSizesV1 { /// The size of the first (lowest-magnitude) group. /// @@ -83,13 +83,13 @@ pub struct GroupingSizesV1 { /// to be stable, their Rust representation might not be. Use with caution. /// #[derive(Debug, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)] -#[cfg_attr(feature = "datagen", derive(serde::Serialize))] #[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "datagen", derive(serde::Serialize))] #[zerovec::make_varule(DecimalSymbolsV1StringsULE)] #[zerovec::derive(Debug)] #[zerovec::skip_derive(Ord)] -#[cfg_attr(feature = "serde", zerovec::derive(Serialize))] -#[cfg_attr(feature = "datagen", zerovec::derive(Deserialize))] +#[cfg_attr(feature = "serde", zerovec::derive(Deserialize))] +#[cfg_attr(feature = "datagen", zerovec::derive(Serialize))] pub struct DecimalSymbolsV1Strings<'data> { /// Prefix to apply when a negative sign is needed. #[cfg_attr(feature = "serde", serde(borrow))] @@ -146,9 +146,9 @@ impl databake::BakeSize for &DecimalSymbolsV1StringsULE { /// #[icu_provider::data_struct(DecimalSymbolsV1Marker = "decimal/symbols@1")] #[derive(Debug, PartialEq, Clone)] +#[cfg_attr(feature = "serde", derive(serde::Deserialize))] #[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))] #[cfg_attr(feature = "datagen", databake(path = icu_decimal::provider))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] pub struct DecimalSymbolsV1<'data> { /// String data for the symbols: +/- affixes and separators #[cfg_attr(feature = "serde", serde(borrow))]