Skip to content

Commit

Permalink
skip serialization on optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jul 28, 2023
1 parent 423f426 commit 4bd46d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/chainhook-sdk/src/chainhooks/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,9 @@ pub enum StacksContractDeploymentPredicate {
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub struct StacksPrintEventBasedPredicate {
#[serde(skip_serializing_if = "Option::is_none")]
pub contract_identifier: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub contains: Option<String>,
}

Expand Down

0 comments on commit 4bd46d6

Please sign in to comment.