Improve container output

This commit is contained in:
Dominik Werder
2024-12-04 15:59:51 +01:00
parent 90689c532e
commit 3ccb1f770f
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ use serde::Serialize;
use std::collections::BTreeMap;
pub trait UserApiType {
fn into_serializable(self: Box<Self>) -> Box<dyn erased_serde::Serialize>;
fn into_serializable_normal(self: Box<Self>) -> Box<dyn erased_serde::Serialize>;
fn into_serializable_json(self: Box<Self>) -> Box<dyn erased_serde::Serialize>;
}
@@ -32,7 +32,7 @@ impl ToCborValue for EmptyStruct {
}
impl UserApiType for EmptyStruct {
fn into_serializable(self: Box<Self>) -> Box<dyn erased_serde::Serialize> {
fn into_serializable_normal(self: Box<Self>) -> Box<dyn erased_serde::Serialize> {
Box::new(BTreeMap::<String, u32>::new())
}

View File

@@ -172,7 +172,7 @@ pub trait BinningggContainerBinsDyn:
&self,
range: BinnedRange<TsNano>,
) -> Box<dyn BinnedBinsTimeweightTrait>;
fn fix_numerics(&mut self);
fn boxed_into_collectable_box(self: Box<Self>) -> Box<dyn CollectableDyn>;
}
pub type BinsBoxed = Box<dyn BinningggContainerBinsDyn>;