mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-26 02:08:10 -07:00
global: fixes
This commit is contained in:
@@ -4,6 +4,7 @@ use serde::Deserialize;
|
||||
use brk_types::Txid;
|
||||
|
||||
#[derive(Debug, Default, Deserialize, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct AddrTxidsParam {
|
||||
/// Txid to paginate from (return transactions before this one)
|
||||
pub after_txid: Option<Txid>,
|
||||
|
||||
@@ -11,6 +11,7 @@ pub struct TimestampParam {
|
||||
|
||||
/// Optional UNIX timestamp query parameter
|
||||
#[derive(Deserialize, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct OptionalTimestampParam {
|
||||
pub timestamp: Option<Timestamp>,
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ pub struct UrpdCohortParam {
|
||||
|
||||
/// Query parameters for URPD endpoints.
|
||||
#[derive(Deserialize, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct UrpdQuery {
|
||||
/// Aggregation strategy. Default: raw (no aggregation). Accepts `bucket` as alias.
|
||||
#[serde(default, rename = "agg", alias = "bucket")]
|
||||
|
||||
Reference in New Issue
Block a user