@@ -31,8 +31,8 @@ use itertools::Itertools;
3131use reqwest:: header:: {
3232 HeaderMap , HeaderName , HeaderValue , { self } ,
3333} ;
34- use serde_derive:: Deserialize ;
3534use reqwest:: { Client , Method , StatusCode , Url } ;
35+ use serde_derive:: Deserialize ;
3636use tokio:: sync:: OnceCell ;
3737use typed_builder:: TypedBuilder ;
3838
@@ -50,7 +50,7 @@ const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
5050const PATH_V1 : & str = "v1" ;
5151
5252/// Rest catalog configuration.
53- #[ derive( Clone , Debug , TypedBuilder , Deserialize , PartialEq ) ]
53+ #[ derive( Clone , Debug , TypedBuilder , Deserialize ) ]
5454pub struct RestCatalogConfig {
5555 uri : String ,
5656
@@ -65,6 +65,12 @@ pub struct RestCatalogConfig {
6565 client : Option < Client > ,
6666}
6767
68+ impl PartialEq for RestCatalogConfig {
69+ fn eq ( & self , other : & Self ) -> bool {
70+ self . uri == other. uri && self . warehouse == other. warehouse && self . props == other. props
71+ }
72+ }
73+
6874impl RestCatalogConfig {
6975 fn url_prefixed ( & self , parts : & [ & str ] ) -> String {
7076 [ & self . uri , PATH_V1 ]
0 commit comments