@@ -37,7 +37,7 @@ pub use tokio_postgres;
3737use super :: IsolationLevel ;
3838
3939#[ derive( Clone ) ]
40- struct Hidden < T > ( T ) ;
40+ pub struct Hidden < T > ( pub T ) ;
4141
4242impl < T > Debug for Hidden < T > {
4343 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
@@ -81,10 +81,10 @@ pub struct SslParams {
8181}
8282
8383#[ derive( Debug ) ]
84- struct SslAuth {
85- certificate : Hidden < Option < Certificate > > ,
86- identity : Hidden < Option < Identity > > ,
87- ssl_accept_mode : SslAcceptMode ,
84+ pub struct SslAuth {
85+ pub certificate : Hidden < Option < Certificate > > ,
86+ pub identity : Hidden < Option < Identity > > ,
87+ pub ssl_accept_mode : SslAcceptMode ,
8888}
8989
9090impl Default for SslAuth {
@@ -115,7 +115,7 @@ impl SslAuth {
115115}
116116
117117impl SslParams {
118- async fn into_auth ( self ) -> crate :: Result < SslAuth > {
118+ pub async fn into_auth ( self ) -> crate :: Result < SslAuth > {
119119 let mut auth = SslAuth :: default ( ) ;
120120 auth. accept_mode ( self . ssl_accept_mode ) ;
121121
@@ -457,7 +457,7 @@ impl PostgresUrl {
457457 } )
458458 }
459459
460- pub ( crate ) fn ssl_params ( & self ) -> & SslParams {
460+ pub fn ssl_params ( & self ) -> & SslParams {
461461 & self . query_params . ssl_params
462462 }
463463
@@ -466,7 +466,7 @@ impl PostgresUrl {
466466 self . query_params . connection_limit
467467 }
468468
469- pub ( crate ) fn to_config ( & self ) -> Config {
469+ pub fn to_config ( & self ) -> Config {
470470 let mut config = Config :: new ( ) ;
471471
472472 config. user ( self . username ( ) . borrow ( ) ) ;
0 commit comments