@@ -13,71 +13,71 @@ use url::{ParseError, Url};
13
13
14
14
const DEFAULT_DNS_SUFFIX : & str = "dfs.core.windows.net" ;
15
15
16
- pub trait AsDataLakeClient < A : Into < String > > {
17
- fn as_data_lake_client (
18
- & self ,
19
- account : A ,
20
- bearer_token : String ,
21
- ) -> Result < Arc < DataLakeClient > , url:: ParseError > ;
22
-
23
- #[ cfg( feature = "mock_transport_framework" ) ]
24
- fn as_data_lake_client_with_transaction (
25
- & self ,
26
- account : A ,
27
- bearer_token : String ,
28
- transaction_name : impl Into < String > ,
29
- ) -> Result < Arc < DataLakeClient > , url:: ParseError > ;
30
- }
31
-
32
- pub trait AsCustomDataLakeClient < DS : Into < String > , A : Into < String > > {
33
- fn as_data_lake_client_with_custom_dns_suffix (
34
- & self ,
35
- account : A ,
36
- bearer_token : String ,
37
- dns_suffix : DS ,
38
- ) -> Result < Arc < DataLakeClient > , url:: ParseError > ;
39
- }
40
-
41
- impl < A : Into < String > > AsDataLakeClient < A > for StorageClient {
42
- fn as_data_lake_client (
43
- & self ,
44
- account : A ,
45
- bearer_token : String ,
46
- ) -> Result < Arc < DataLakeClient > , url:: ParseError > {
47
- DataLakeClient :: new ( self . clone ( ) , account. into ( ) , bearer_token, None )
48
- }
49
-
50
- #[ cfg( feature = "mock_transport_framework" ) ]
51
- fn as_data_lake_client_with_transaction (
52
- & self ,
53
- account : A ,
54
- bearer_token : String ,
55
- transaction_name : impl Into < String > ,
56
- ) -> Result < Arc < DataLakeClient > , url:: ParseError > {
57
- DataLakeClient :: new_with_transaction (
58
- self . clone ( ) ,
59
- account. into ( ) ,
60
- bearer_token,
61
- transaction_name,
62
- )
63
- }
64
- }
65
-
66
- impl < DS : Into < String > , A : Into < String > > AsCustomDataLakeClient < DS , A > for StorageClient {
67
- fn as_data_lake_client_with_custom_dns_suffix (
68
- & self ,
69
- account : A ,
70
- bearer_token : String ,
71
- dns_suffix : DS ,
72
- ) -> Result < Arc < DataLakeClient > , url:: ParseError > {
73
- DataLakeClient :: new (
74
- self . clone ( ) ,
75
- account. into ( ) ,
76
- bearer_token,
77
- Some ( dns_suffix. into ( ) ) ,
78
- )
79
- }
80
- }
16
+ // pub trait AsDataLakeClient<A: Into<String>> {
17
+ // fn as_data_lake_client(
18
+ // &self,
19
+ // account: A,
20
+ // bearer_token: String,
21
+ // ) -> Result<Arc<DataLakeClient>, url::ParseError>;
22
+ //
23
+ // #[cfg(feature = "mock_transport_framework")]
24
+ // fn as_data_lake_client_with_transaction(
25
+ // &self,
26
+ // account: A,
27
+ // bearer_token: String,
28
+ // transaction_name: impl Into<String>,
29
+ // ) -> Result<Arc<DataLakeClient>, url::ParseError>;
30
+ // }
31
+ //
32
+ // pub trait AsCustomDataLakeClient<DS: Into<String>, A: Into<String>> {
33
+ // fn as_data_lake_client_with_custom_dns_suffix(
34
+ // &self,
35
+ // account: A,
36
+ // bearer_token: String,
37
+ // dns_suffix: DS,
38
+ // ) -> Result<Arc<DataLakeClient>, url::ParseError>;
39
+ // }
40
+ //
41
+ // impl<A: Into<String>> AsDataLakeClient<A> for StorageClient {
42
+ // fn as_data_lake_client(
43
+ // &self,
44
+ // account: A,
45
+ // bearer_token: String,
46
+ // ) -> Result<Arc<DataLakeClient>, url::ParseError> {
47
+ // DataLakeClient::new(self.clone(), account.into(), bearer_token, None)
48
+ // }
49
+ //
50
+ // #[cfg(feature = "mock_transport_framework")]
51
+ // fn as_data_lake_client_with_transaction(
52
+ // &self,
53
+ // account: A,
54
+ // bearer_token: String,
55
+ // transaction_name: impl Into<String>,
56
+ // ) -> Result<Arc<DataLakeClient>, url::ParseError> {
57
+ // DataLakeClient::new_with_transaction(
58
+ // self.clone(),
59
+ // account.into(),
60
+ // bearer_token,
61
+ // transaction_name,
62
+ // )
63
+ // }
64
+ // }
65
+ //
66
+ // impl<DS: Into<String>, A: Into<String>> AsCustomDataLakeClient<DS, A> for StorageClient {
67
+ // fn as_data_lake_client_with_custom_dns_suffix(
68
+ // &self,
69
+ // account: A,
70
+ // bearer_token: String,
71
+ // dns_suffix: DS,
72
+ // ) -> Result<Arc<DataLakeClient>, url::ParseError> {
73
+ // DataLakeClient::new(
74
+ // self.clone(),
75
+ // account.into(),
76
+ // bearer_token,
77
+ // Some(dns_suffix.into()),
78
+ // )
79
+ // }
80
+ // }
81
81
82
82
#[ derive( Debug , Clone ) ]
83
83
pub struct DataLakeClient {
0 commit comments