From cadd814c28b03205c8277530ef09bffcdba44ec6 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Wed, 3 Feb 2016 03:38:32 +0100 Subject: Docopt -> clap, main.rs -> src/app Modularise the old main function, switch to clap for easier addition of CLI arguments --- src/event.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/event.rs') 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> } +#[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)] -- cgit v1.2.3