From 59c9886b6ca9a033f685e3cb7db92ed3e8e4ef0a Mon Sep 17 00:00:00 2001 From: Paritosh Date: Wed, 4 Oct 2023 20:41:43 +0530 Subject: [PATCH] define `Serialize` for `RegionConfiguration` --- rust-connector-sdk/src/connector.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust-connector-sdk/src/connector.rs b/rust-connector-sdk/src/connector.rs index 92619cab..d9965e14 100644 --- a/rust-connector-sdk/src/connector.rs +++ b/rust-connector-sdk/src/connector.rs @@ -287,12 +287,15 @@ pub trait Connector { ) -> Result; } +#[derive(Serialize)] pub enum ConnectorMode { ReadOnly, ReadWrite, WriteOnly, } +#[derive(Serialize)] +#[serde(bound = "::Configuration: Serialize")] pub struct RegionConfiguration { pub config: ::Configuration, pub mode: ConnectorMode,