File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,16 @@ pub enum ConnectTarget {
117
117
/// Authentication information.
118
118
#[ derive( Clone , Debug ) ]
119
119
pub struct UserInfo {
120
- /// The username
120
+ /// The username.
121
121
pub user : String ,
122
- /// An optional password
122
+ /// An optional password.
123
123
pub password : Option < String > ,
124
124
}
125
125
126
126
/// Information necessary to open a new connection to a Postgres server.
127
127
#[ derive( Clone , Debug ) ]
128
128
pub struct ConnectParams {
129
- /// The target server
129
+ /// The target server.
130
130
pub target : ConnectTarget ,
131
131
/// The target port.
132
132
///
@@ -136,7 +136,9 @@ pub struct ConnectParams {
136
136
///
137
137
/// `Connection::connect` requires a user but `cancel_query` does not.
138
138
pub user : Option < UserInfo > ,
139
- /// The database to connect to. Defaults the value of `user`.
139
+ /// The database to connect to.
140
+ ///
141
+ /// Defaults the value of `user`.
140
142
pub database : Option < String > ,
141
143
/// Runtime parameters to be passed to the Postgres backend.
142
144
pub options : Vec < ( String , String ) > ,
You can’t perform that action at this time.
0 commit comments