begin fleshing out discord module. Implement sender/channel as struct for now, there might be a performance hit from copying so much data around but we can look at optimization later

This commit is contained in:
Adrian Malacoda
2017-02-13 22:13:33 -06:00
parent 6424a7a37f
commit d414e65fd9
5 changed files with 50 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
use {Channel, User};
#[derive(Debug, Clone)]
pub enum Event<'a> {
Message { sender: &'a User, channel: Option<&'a Channel>, content: String },
Join { channel: &'a Channel },
Quit { channel: &'a Channel }
pub enum Event {
Message { sender: User, channel: Option<Channel>, content: String },
Join { channel: Channel },
Quit { channel: Channel }
}