@@ -59,7 +59,7 @@ use utoipa::ToSchema;
5959/// ## Remarks
6060/// The `CurveMetrics` struct is designed to be reusable across various analytical contexts,
6161/// providing a versatile and standardized way to represent curve characteristics.
62- #[ derive( Clone , DebugPretty , DisplaySimple , ToSchema , Serialize ) ]
62+ #[ derive( DebugPretty , DisplaySimple , Clone , Serialize , ToSchema ) ]
6363pub struct Metrics {
6464 /// - **Basic Metrics (`basic`)**:
6565 /// Includes fundamental statistical measures such as mean, median, mode, and standard deviation.
@@ -235,7 +235,7 @@ impl Metrics {
235235/// - [`ShapeMetrics`]: Captures shape-related properties like skewness and kurtosis.
236236/// - [`RiskMetrics`]: Measures risk characteristics of financial instruments.
237237/// - [`TrendMetrics`]: Represents time-based trends in data series.
238- #[ derive( Clone , Copy , DebugPretty , DisplaySimple , ToSchema , Serialize ) ]
238+ #[ derive( DebugPretty , DisplaySimple , Clone , Copy , Serialize , ToSchema ) ]
239239pub struct BasicMetrics {
240240 /// The arithmetic mean (average) of the dataset.
241241 /// Calculated by summing all values and dividing by the count of values.
@@ -297,7 +297,7 @@ pub struct BasicMetrics {
297297/// `ShapeMetrics` is typically part of the larger `AnalysisResult` structure
298298/// that provides comprehensive curve analysis. It uses `Point2D` to represent
299299/// all positional data with high-precision `Decimal` values.
300- #[ derive( Clone , DebugPretty , DisplaySimple , ToSchema , Serialize ) ]
300+ #[ derive( DebugPretty , DisplaySimple , Clone , Serialize , ToSchema ) ]
301301pub struct ShapeMetrics {
302302 /// Describes the asymmetry of the curve's distribution.
303303 /// A positive value indicates a right tail (right-skewed distribution),
@@ -357,7 +357,7 @@ pub struct ShapeMetrics {
357357///
358358/// This structure is part of the curves analysis module that provides comprehensive
359359/// statistical and financial analysis tools for mathematical curves.
360- #[ derive( Clone , Copy , DebugPretty , DisplaySimple , ToSchema , Serialize ) ]
360+ #[ derive( DebugPretty , DisplaySimple , Clone , Copy , Serialize , ToSchema ) ]
361361pub struct RangeMetrics {
362362 /// The minimum point in the dataset, containing the smallest x and y coordinates observed.
363363 pub min : Point2D ,
@@ -405,7 +405,7 @@ pub struct RangeMetrics {
405405///
406406/// This structure is a key component of the curve analysis module and works
407407/// alongside other metric types to provide comprehensive statistical analysis.
408- #[ derive( Clone , DebugPretty , DisplaySimple , ToSchema , Serialize ) ]
408+ #[ derive( DebugPretty , DisplaySimple , Clone , Serialize , ToSchema ) ]
409409pub struct TrendMetrics {
410410 /// The slope coefficient of the linear regression line, indicating the
411411 /// rate and direction of change in the dataset.
@@ -451,7 +451,7 @@ pub struct TrendMetrics {
451451/// # Note
452452/// For accuracy, ensure the data used to compute these metrics represents a
453453/// sufficiently long time horizon and is free from anomalies.
454- #[ derive( Clone , Copy , DebugPretty , DisplaySimple , ToSchema , Serialize ) ]
454+ #[ derive( DebugPretty , DisplaySimple , Clone , Copy , Serialize , ToSchema ) ]
455455pub struct RiskMetrics {
456456 /// Measures the degree of variation in returns over time.
457457 /// Represents the standard deviation of returns and is a widely used
0 commit comments