mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-16 06:18:27 +00:00
Use default for Description and do not serialize if empty.
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user