File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,16 +117,16 @@ pub enum ConnectTarget {
117117/// Authentication information.
118118#[ derive( Clone , Debug ) ]
119119pub struct UserInfo {
120- /// The username
120+ /// The username.
121121 pub user : String ,
122- /// An optional password
122+ /// An optional password.
123123 pub password : Option < String > ,
124124}
125125
126126/// Information necessary to open a new connection to a Postgres server.
127127#[ derive( Clone , Debug ) ]
128128pub struct ConnectParams {
129- /// The target server
129+ /// The target server.
130130 pub target : ConnectTarget ,
131131 /// The target port.
132132 ///
@@ -136,7 +136,9 @@ pub struct ConnectParams {
136136 ///
137137 /// `Connection::connect` requires a user but `cancel_query` does not.
138138 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`.
140142 pub database : Option < String > ,
141143 /// Runtime parameters to be passed to the Postgres backend.
142144 pub options : Vec < ( String , String ) > ,
You can’t perform that action at this time.
0 commit comments