From d6c3b39ded2bd06d1814cd2c3bec0aa6d972efbb Mon Sep 17 00:00:00 2001 From: Andrew Gasparovic <72571446+agasparovic@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:00:19 -0700 Subject: [PATCH] Add additional time types (#275) Duration and Weekday are also serialized as strings, just like OffsetDateTime, Time, etc. --- specta/src/type/legacy_impls.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specta/src/type/legacy_impls.rs b/specta/src/type/legacy_impls.rs index 5fb8d56..8320f93 100644 --- a/specta/src/type/legacy_impls.rs +++ b/specta/src/type/legacy_impls.rs @@ -256,6 +256,8 @@ impl_as!( time::OffsetDateTime as String time::Date as String time::Time as String + time::Duration as String + time::Weekday as String ); #[cfg(feature = "bigdecimal")]