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;
1515/// .retry(RetryOptions::default().max_retries(10u32))
1616/// .telemetry(TelemetryOptions::default().application_id("my-application"));
1717/// ```
18- #[ derive( Clone , Debug ) ]
18+ #[ derive( Clone , Debug , Default ) ]
1919pub struct ClientOptions {
20- // TODO: Expose transport override.
2120 /// Policies called per call.
2221 pub ( crate ) per_call_policies : Vec < Arc < dyn Policy > > ,
23-
2422 /// Policies called per retry.
2523 pub ( crate ) per_retry_policies : Vec < Arc < dyn Policy > > ,
26-
2724 /// Retry options.
2825 pub ( crate ) retry : RetryOptions ,
29-
3026 /// Telemetry options.
3127 pub ( crate ) telemetry : TelemetryOptions ,
32-
3328 /// Transport options.
3429 pub ( crate ) transport : TransportOptions ,
3530}
3631
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-
4932impl ClientOptions {
5033 pub fn new ( ) -> Self {
5134 Self :: default ( )
You can’t perform that action at this time.
0 commit comments