Skip to content

Commit 0848c29

Browse files
committed
fix: add json binary encoding
1 parent b2886a5 commit 0848c29

File tree

1 file changed

+5
-1
lines changed
  • lazer/sdk/rust/protocol/src

1 file changed

+5
-1
lines changed

lazer/sdk/rust/protocol/src/api.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
use serde::{Deserialize, Serialize};
22

3-
use crate::router::{Chain, Channel, JsonUpdate, PriceFeedId, PriceFeedProperty};
3+
use crate::router::{
4+
Chain, Channel, JsonBinaryEncoding, JsonUpdate, PriceFeedId, PriceFeedProperty,
5+
};
46

57
#[derive(Debug, Clone, Serialize, Deserialize)]
68
#[serde(rename_all = "camelCase")]
79
pub struct LatestPriceRequest {
810
pub price_feed_ids: Vec<PriceFeedId>,
911
pub properties: Vec<PriceFeedProperty>,
1012
pub chains: Vec<Chain>,
13+
#[serde(default)]
14+
pub json_binary_encoding: JsonBinaryEncoding,
1115
/// If `true`, the stream update will contain a JSON object containing
1216
/// all data of the update.
1317
#[serde(default = "default_parsed")]

0 commit comments

Comments
 (0)