From e512508e0ceb8f3e6bfae1e2784aed14236a3818 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Wed, 18 Oct 2023 15:43:48 +0200 Subject: [PATCH] ifaces: add serde implementation for SchemaIfaces --- std/src/interface/iimpl.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/std/src/interface/iimpl.rs b/std/src/interface/iimpl.rs index 3d2fb4fd..a22b3c60 100644 --- a/std/src/interface/iimpl.rs +++ b/std/src/interface/iimpl.rs @@ -161,6 +161,11 @@ impl NamedType { #[derive(Clone, Eq, PartialEq, Debug)] #[derive(StrictType, StrictDumb, StrictEncode, StrictDecode)] #[strict_type(lib = LIB_NAME_RGB_STD)] +#[cfg_attr( + feature = "serde", + derive(Serialize, Deserialize), + serde(crate = "serde_crate", rename_all = "camelCase") +)] pub struct SchemaIfaces { pub schema: SubSchema, pub iimpls: TinyOrdMap,