From a01919a00896c95f951b08f1722450f36a38185c Mon Sep 17 00:00:00 2001 From: Andrew Gasparovic <72571446+agasparovic@users.noreply.github.com> Date: Sat, 27 Jul 2024 16:08:56 -0700 Subject: [PATCH] Add additional time types 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")]