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
17
use std::borrow::Cow;

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

use super::Index;

/// Information about an available index and its query aliases
#[derive(Clone, Serialize, Deserialize, JsonSchema)]
pub struct IndexInfo {
    /// The canonical index name
    pub index: Index,

    /// All Accepted query aliases
    #[schemars(example = vec!["d", "date", "day1"])]
    pub aliases: Vec<Cow<'static, str>>,
}