@@ -31,8 +31,8 @@ use itertools::Itertools;
31
31
use reqwest:: header:: {
32
32
HeaderMap , HeaderName , HeaderValue , { self } ,
33
33
} ;
34
- use serde_derive:: Deserialize ;
35
34
use reqwest:: { Client , Method , StatusCode , Url } ;
35
+ use serde_derive:: Deserialize ;
36
36
use tokio:: sync:: OnceCell ;
37
37
use typed_builder:: TypedBuilder ;
38
38
@@ -50,7 +50,7 @@ const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
50
50
const PATH_V1 : & str = "v1" ;
51
51
52
52
/// Rest catalog configuration.
53
- #[ derive( Clone , Debug , TypedBuilder , Deserialize , PartialEq ) ]
53
+ #[ derive( Clone , Debug , TypedBuilder , Deserialize ) ]
54
54
pub struct RestCatalogConfig {
55
55
uri : String ,
56
56
@@ -65,6 +65,12 @@ pub struct RestCatalogConfig {
65
65
client : Option < Client > ,
66
66
}
67
67
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
+
68
74
impl RestCatalogConfig {
69
75
fn url_prefixed ( & self , parts : & [ & str ] ) -> String {
70
76
[ & self . uri , PATH_V1 ]
0 commit comments