brk_types 0.2.2

Structs used throughout BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::borrow::Cow;

use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

use crate::Index;

/// Metadata about a series
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
pub struct SeriesInfo {
    /// Available indexes
    pub indexes: Vec<Index>,
    /// Value type (e.g. "f32", "u64", "Sats")
    #[serde(rename = "type")]
    pub value_type: Cow<'static, str>,
}