Backtracking again, and adding the channel_type tag.

This commit is contained in:
Paul Makles
2021-01-19 20:55:25 +00:00
parent 984017eb61
commit 81de29e723

View File

@@ -6,7 +6,7 @@ use rocket_contrib::json::JsonValue;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "type")]
#[serde(tag = "channel_type")]
pub enum Channel {
SavedMessages {
#[serde(rename = "_id")]