Move binned type, add tests
This commit is contained in:
@@ -266,7 +266,7 @@ pub struct MinMaxAvgBinsCollectedResult<NTY> {
|
||||
mins: Vec<NTY>,
|
||||
maxs: Vec<NTY>,
|
||||
avgs: Vec<f32>,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
finalised_range: bool,
|
||||
#[serde(skip_serializing_if = "Zero::is_zero", rename = "missingBins")]
|
||||
missing_bins: u32,
|
||||
|
||||
@@ -259,7 +259,7 @@ pub struct MinMaxAvgDim1BinsCollectedResult<NTY> {
|
||||
mins: Vec<Option<Vec<NTY>>>,
|
||||
maxs: Vec<Option<Vec<NTY>>>,
|
||||
avgs: Vec<Option<Vec<f32>>>,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
finalised_range: bool,
|
||||
#[serde(skip_serializing_if = "Zero::is_zero", rename = "missingBins")]
|
||||
missing_bins: u32,
|
||||
@@ -497,7 +497,7 @@ pub struct WaveEventsCollectedResult<NTY> {
|
||||
#[serde(rename = "pulseOff")]
|
||||
pulse_off: Vec<u64>,
|
||||
values: Vec<Vec<NTY>>,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
range_complete: bool,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "timedOut")]
|
||||
timed_out: bool,
|
||||
|
||||
@@ -371,7 +371,7 @@ impl FrameType for EventQueryJsonStringFrame {
|
||||
}
|
||||
|
||||
pub trait EventsNodeProcessorOutput:
|
||||
Send + Unpin + DeserializeOwned + WithTimestamps + TimeBinnableType + ByteEstimate
|
||||
fmt::Debug + Send + Unpin + DeserializeOwned + WithTimestamps + TimeBinnableType + ByteEstimate
|
||||
{
|
||||
fn as_any_mut(&mut self) -> &mut dyn Any;
|
||||
fn into_parts(self) -> (Box<dyn Any>, VecDeque<u64>, VecDeque<u64>);
|
||||
|
||||
@@ -290,7 +290,7 @@ pub struct EventValuesCollectorOutput<NTY> {
|
||||
#[serde(rename = "pulseOff")]
|
||||
pulse_off: Vec<u64>,
|
||||
values: Vec<NTY>,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
range_complete: bool,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "timedOut")]
|
||||
timed_out: bool,
|
||||
|
||||
@@ -221,7 +221,7 @@ pub struct StatsEventsCollectorOutput {
|
||||
#[serde(rename = "tsNs")]
|
||||
ts_off_ns: Vec<u64>,
|
||||
// TODO what to collect? pulse min/max
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
range_complete: bool,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "timedOut")]
|
||||
timed_out: bool,
|
||||
|
||||
@@ -429,7 +429,7 @@ pub struct XBinnedScalarEventsCollectedResult<NTY> {
|
||||
mins: Vec<NTY>,
|
||||
maxs: Vec<NTY>,
|
||||
avgs: Vec<f32>,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
finalised_range: bool,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "timedOut")]
|
||||
timed_out: bool,
|
||||
|
||||
@@ -450,7 +450,7 @@ pub struct XBinnedWaveEventsCollectedResult<NTY> {
|
||||
mins: Vec<Vec<NTY>>,
|
||||
maxs: Vec<Vec<NTY>>,
|
||||
avgs: Vec<Vec<f32>>,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "finalisedRange")]
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "rangeFinal")]
|
||||
finalised_range: bool,
|
||||
#[serde(skip_serializing_if = "crate::bool_is_false", rename = "timedOut")]
|
||||
timed_out: bool,
|
||||
|
||||
Reference in New Issue
Block a user