mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-16 14:28:14 +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 {
|
pub struct ResultPayload {
|
||||||
#[serde(rename = "ResultCode")]
|
#[serde(rename = "ResultCode")]
|
||||||
pub result_code: ResultCode,
|
pub result_code: ResultCode,
|
||||||
#[serde(rename = "Description")]
|
#[serde(
|
||||||
|
default,
|
||||||
|
rename = "Description",
|
||||||
|
skip_serializing_if = "String::is_empty"
|
||||||
|
)]
|
||||||
pub description: String,
|
pub description: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user