From 9214306c9fa61d7b084f868fd0f64be5e2d43101 Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Tue, 4 Jun 2024 10:50:16 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20more=20implementations=20of?= =?UTF-8?q?=20StreamMsg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bus/redis/stream/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/bus/redis/stream/mod.rs b/lib/bus/redis/stream/mod.rs index 3f6e058..8e5f6ae 100644 --- a/lib/bus/redis/stream/mod.rs +++ b/lib/bus/redis/stream/mod.rs @@ -8,6 +8,11 @@ use { pub trait StreamMsg: Clone + Send + Sync + 'static {} +impl StreamMsg for String {} +impl StreamMsg for Vec {} +impl StreamMsg for serde_json::Value {} +impl StreamMsg for serde_json::Map {} + // TODO: move this to a separate module, or maybe to the lool library pub struct SourceStream { sender: Option>,