@@ -106,7 +106,7 @@ const TYPEINFO_QUERY: &'static str = "t";
106106pub type Result < T > = result:: Result < T , Error > ;
107107
108108/// Specifies the target server to connect to.
109- #[ derive( Clone , Show ) ]
109+ #[ derive( Clone , Debug ) ]
110110pub enum ConnectTarget {
111111 /// Connect via TCP to the specified host.
112112 Tcp ( String ) ,
@@ -115,7 +115,7 @@ pub enum ConnectTarget {
115115}
116116
117117/// Authentication information
118- #[ derive( Clone , Show ) ]
118+ #[ derive( Clone , Debug ) ]
119119pub struct UserInfo {
120120 /// The username
121121 pub user : String ,
@@ -124,7 +124,7 @@ pub struct UserInfo {
124124}
125125
126126/// Information necessary to open a new connection to a Postgres server.
127- #[ derive( Clone , Show ) ]
127+ #[ derive( Clone , Debug ) ]
128128pub struct ConnectParams {
129129 /// The target server
130130 pub target : ConnectTarget ,
@@ -206,7 +206,7 @@ pub trait NoticeHandler: Send {
206206/// A notice handler which logs at the `info` level.
207207///
208208/// This is the default handler used by a `Connection`.
209- #[ derive( Copy , Show ) ]
209+ #[ derive( Copy , Debug ) ]
210210pub struct DefaultNoticeHandler ;
211211
212212impl NoticeHandler for DefaultNoticeHandler {
@@ -216,7 +216,7 @@ impl NoticeHandler for DefaultNoticeHandler {
216216}
217217
218218/// An asynchronous notification
219- #[ derive( Clone , Show ) ]
219+ #[ derive( Clone , Debug ) ]
220220pub struct Notification {
221221 /// The process ID of the notifying backend process
222222 pub pid : u32 ,
@@ -330,7 +330,7 @@ impl<'conn> Notifications<'conn> {
330330}
331331
332332/// Contains information necessary to cancel queries for a session
333- #[ derive( Copy , Clone , Show ) ]
333+ #[ derive( Copy , Clone , Debug ) ]
334334pub struct CancelData {
335335 /// The process ID of the session
336336 pub process_id : u32 ,
@@ -1129,7 +1129,7 @@ impl Connection {
11291129}
11301130
11311131/// Specifies the SSL support requested for a new connection
1132- #[ derive( Show ) ]
1132+ #[ derive( Debug ) ]
11331133pub enum SslMode {
11341134 /// The connection will not use SSL
11351135 None ,
@@ -1499,7 +1499,7 @@ impl<'conn> Statement<'conn> {
14991499}
15001500
15011501/// Information about a column of the result of a query.
1502- #[ derive( PartialEq , Eq , Clone , Show ) ]
1502+ #[ derive( PartialEq , Eq , Clone , Debug ) ]
15031503pub struct ResultDescription {
15041504 /// The name of the column
15051505 pub name : String ,
0 commit comments