mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
http_protocol: skip serializing AnnounceResponse.warning_message if None
This commit is contained in:
parent
92b62e73ca
commit
6eb1375e4e
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ pub struct AnnounceResponse {
|
||||||
pub peers: ResponsePeerListV4,
|
pub peers: ResponsePeerListV4,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub peers6: ResponsePeerListV6,
|
pub peers6: ResponsePeerListV6,
|
||||||
#[serde(rename = "warning message")]
|
#[serde(rename = "warning message", skip_serializing_if = "Option::is_none")]
|
||||||
pub warning_message: Option<String>,
|
pub warning_message: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue