global: snapshot

This commit is contained in:
nym21
2025-10-31 21:37:02 +01:00
parent 82e59d409e
commit cf08e470ef
127 changed files with 1059 additions and 450 deletions

View File

@@ -1,7 +1,6 @@
use std::ops::Deref;
use brk_types::{Format, Index, Metric, Metrics};
use derive_deref::Deref;
use schemars::JsonSchema;
use serde::Deserialize;
@@ -28,6 +27,7 @@ impl Deref for Params {
}
impl From<(Index, Metric, ParamsOpt)> for Params {
#[inline]
fn from((index, metric, rest): (Index, Metric, ParamsOpt)) -> Self {
Self {
index,
@@ -38,6 +38,7 @@ impl From<(Index, Metric, ParamsOpt)> for Params {
}
impl From<(Index, Metrics, ParamsOpt)> for Params {
#[inline]
fn from((index, metrics, rest): (Index, Metrics, ParamsOpt)) -> Self {
Self {
index,
@@ -118,6 +119,7 @@ pub struct ParamsDeprec {
}
impl From<ParamsDeprec> for Params {
#[inline]
fn from(value: ParamsDeprec) -> Self {
Params {
index: value.index,