aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index f497359..d2ce053 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -95,6 +95,11 @@ pub struct Event<'a> {
pub channel: Option<Cow<'a, str>>
}
+#[derive(Clone, Debug, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)]
+pub struct User<'a> {
+ nick: Cow<'a, str>
+}
+
/// All representable events, such as messages, quits, joins
/// and topic changes.
#[derive(Clone, Debug, Hash, PartialEq, Eq, RustcEncodable, RustcDecodable)]