Skip to content

Add Eq, ParialEq and Hash to ConnectParams (etc) #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions postgres-shared/src/params/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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<String>,
Expand All @@ -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,
Expand Down