forked from jmug/stoatchat
Re-do guards, streamline requests.
This commit is contained in:
12
src/database/channel.rs
Normal file
12
src/database/channel.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use serde::{ Deserialize, Serialize };
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct Channel {
|
||||
#[serde(rename = "_id")]
|
||||
pub id: String,
|
||||
pub channel_type: u8,
|
||||
|
||||
// for Direct Messages
|
||||
pub recipients: Option<Vec<String>>,
|
||||
pub active: Option<bool>,
|
||||
}
|
||||
Reference in New Issue
Block a user