diff options
author | Till Höppner | 2016-02-03 03:38:32 +0100 |
---|---|---|
committer | Till Höppner | 2016-02-03 03:38:32 +0100 |
commit | cadd814c28b03205c8277530ef09bffcdba44ec6 (patch) | |
tree | 0314a1ee2e87f4f3eedde42b5fe685610b98d1db /src/event.rs | |
parent | c4acc192d9e6b023334156706b9974006652d6d6 (diff) | |
download | ilc-cadd814c28b03205c8277530ef09bffcdba44ec6.tar.gz ilc-cadd814c28b03205c8277530ef09bffcdba44ec6.tar.xz ilc-cadd814c28b03205c8277530ef09bffcdba44ec6.zip |
Docopt -> clap, main.rs -> src/app
Modularise the old main function,
switch to clap for easier addition of CLI arguments
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 5 |
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)] |