Skip to content

Commit

Permalink
add schema back to response objects
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy authored Feb 27, 2023
1 parent bfc6faf commit 2a724fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ pub struct JsonIncomingResponse {
#[serde(rename = "ver")]
pub version: usize,
#[serde(rename = "ref")]
pub reference: String,
pub reference: Option<String>,
#[serde(rename = "dat")]
pub data: String,
#[serde(rename = "src")]
pub source: String,
#[serde(rename = "shm")]
pub schema: Option<String>,
#[serde(rename = "now")]
pub timestamp: u64,
#[serde(rename = "err")]
Expand Down Expand Up @@ -159,11 +161,13 @@ pub struct JsonOutgoingResponse {
#[serde(rename = "ver")]
pub version: usize,
#[serde(rename = "ref")]
pub reference: String,
pub reference: Option<String>,
#[serde(rename = "dat")]
pub data: String,
#[serde(rename = "dst")]
pub destination: String,
#[serde(rename = "shm")]
pub schema: Option<String>,
#[serde(rename = "now")]
pub timestamp: u64,
#[serde(rename = "err")]
Expand Down

0 comments on commit 2a724fe

Please sign in to comment.