brk_server 0.3.0-beta.1

A server with an API for anything from BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use schemars::JsonSchema;
use serde::Deserialize;

use brk_types::Timestamp;

/// UNIX timestamp path parameter
#[derive(Deserialize, JsonSchema)]
pub struct TimestampParam {
    pub timestamp: Timestamp,
}

/// Optional UNIX timestamp query parameter
#[derive(Deserialize, JsonSchema)]
pub struct OptionalTimestampParam {
    pub timestamp: Option<Timestamp>,
}