Rewrite attribute parsing logic

This commit is contained in:
Graham Esau 2019-12-08 22:28:49 +00:00
parent 1bdbaaf082
commit 4c4fb1cf36
4 changed files with 141 additions and 92 deletions

View file

@ -34,7 +34,6 @@ struct Process {
wall_time: Duration,
#[serde(default, with = "DurationDef")]
user_cpu_time: Duration,
// FIXME this should serialize the default as "0.000000000s"
#[serde(default, serialize_with = "custom_serialize")]
#[schemars(with = "DurationDef")]
system_cpu_time: Duration,