Skip to content

Commit

Permalink
pp skip_serializing_none
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Oct 3, 2024
1 parent 64d367c commit be9e04f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ain-ocean/src/api/pool_pair/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ impl From<PoolSwap> for PoolSwapResponse {
}
}

#[skip_serializing_none]
#[derive(Serialize, Debug, Clone, Default)]
#[serde(rename_all = "camelCase")]
struct PoolPairFeeResponse {
Expand All @@ -136,6 +137,7 @@ struct PoolPairFeeResponse {
out_pct: Option<String>,
}

#[skip_serializing_none]
#[derive(Serialize, Debug, Clone, Default)]
#[serde(rename_all = "camelCase")]
struct PoolPairTokenResponse {
Expand Down Expand Up @@ -173,6 +175,7 @@ pub struct PoolPairAprResponse {
pub commission: Decimal,
}

#[skip_serializing_none]
#[derive(Serialize, Debug, Clone, Default)]
#[serde(rename_all = "camelCase")]
pub struct PoolPairResponse {
Expand Down

0 comments on commit be9e04f

Please sign in to comment.