mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-02-21 01:21:21 +00:00
Use default for Description and do not serialize if empty.
This commit is contained in:
parent
ca2961c7b6
commit
75f67f8c5c
@ -528,7 +528,11 @@ pub struct BasePayloadResult {
|
||||
pub struct ResultPayload {
|
||||
#[serde(rename = "ResultCode")]
|
||||
pub result_code: ResultCode,
|
||||
#[serde(rename = "Description")]
|
||||
#[serde(
|
||||
default,
|
||||
rename = "Description",
|
||||
skip_serializing_if = "String::is_empty"
|
||||
)]
|
||||
pub description: String,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user