Finish implementing all routes.

This commit is contained in:
Paul Makles committed 2020-02-08 15:03:40 +00:00
1 parent 331d636f49
commit d5d14305d0
5 files changed
+205 -7

No files matched your search

+3
View File
@@ -4,7 +4,10 @@ use serde::{ Deserialize, Serialize };
pub struct Channel {
#[serde(rename = "_id")]
pub id: String,
#[serde(rename = "type")]
pub channel_type: u8,
pub last_message: Option<String>,
// for Direct Messages
pub recipients: Option<Vec<String>>,
+7 -2
View File
@@ -1,8 +1,13 @@
use serde::{ Deserialize, Serialize };
use bson::{ UtcDateTime };
#[derive(Serialize, Deserialize, Debug)]
pub struct Message {
#[serde(rename = "_id")]
pub id: String,
pub id: String,
pub channel: String,
pub author: String,
pub content: String,
pub edited: Option<UtcDateTime>,
}