chore: skip none trace error (#1577)

This commit is contained in:
Matthias Seitz 2022-08-08 22:02:11 +02:00 committed by GitHub
parent 0bf9665d98
commit 79e59eaffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ pub struct Trace {
#[serde(rename = "type")] #[serde(rename = "type")]
pub action_type: ActionType, pub action_type: ActionType,
/// Error /// Error
#[serde(default, skip_serializing_if = "Option::is_none")]
pub error: Option<String>, pub error: Option<String>,
} }