From 7aef9a6029fe34a6e54405b630cfd315f21b08da Mon Sep 17 00:00:00 2001 From: Rory McCann Date: Thu, 3 Aug 2017 21:37:17 +0200 Subject: [PATCH] Add Eq, ParialEq and Hash to ConnectParams (etc) --- postgres-shared/src/params/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgres-shared/src/params/mod.rs b/postgres-shared/src/params/mod.rs index f07659be6..af0c9b288 100644 --- a/postgres-shared/src/params/mod.rs +++ b/postgres-shared/src/params/mod.rs @@ -8,7 +8,7 @@ use params::url::Url; mod url; /// The host. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] pub enum Host { /// A TCP hostname. Tcp(String), @@ -17,7 +17,7 @@ pub enum Host { } /// Authentication information. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct User { name: String, password: Option, @@ -36,7 +36,7 @@ impl User { } /// Information necessary to open a new connection to a Postgres server. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct ConnectParams { host: Host, port: u16,