File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -15,37 +15,20 @@ use std::time::Duration;
15
15
/// .retry(RetryOptions::default().max_retries(10u32))
16
16
/// .telemetry(TelemetryOptions::default().application_id("my-application"));
17
17
/// ```
18
- #[ derive( Clone , Debug ) ]
18
+ #[ derive( Clone , Debug , Default ) ]
19
19
pub struct ClientOptions {
20
- // TODO: Expose transport override.
21
20
/// Policies called per call.
22
21
pub ( crate ) per_call_policies : Vec < Arc < dyn Policy > > ,
23
-
24
22
/// Policies called per retry.
25
23
pub ( crate ) per_retry_policies : Vec < Arc < dyn Policy > > ,
26
-
27
24
/// Retry options.
28
25
pub ( crate ) retry : RetryOptions ,
29
-
30
26
/// Telemetry options.
31
27
pub ( crate ) telemetry : TelemetryOptions ,
32
-
33
28
/// Transport options.
34
29
pub ( crate ) transport : TransportOptions ,
35
30
}
36
31
37
- impl Default for ClientOptions {
38
- fn default ( ) -> Self {
39
- Self {
40
- per_call_policies : Vec :: new ( ) ,
41
- per_retry_policies : Vec :: new ( ) ,
42
- retry : RetryOptions :: default ( ) ,
43
- telemetry : TelemetryOptions :: default ( ) ,
44
- transport : TransportOptions :: default ( ) ,
45
- }
46
- }
47
- }
48
-
49
32
impl ClientOptions {
50
33
pub fn new ( ) -> Self {
51
34
Self :: default ( )
You can’t perform that action at this time.
0 commit comments