File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,11 @@ pub struct ClientOptions {
425425 #[ builder( default ) ]
426426 pub heartbeat_freq : Option < Duration > ,
427427
428+ /// Whether or not the client is connecting to a MongoDB cluster through a load balancer.
429+ #[ builder( default , setter( skip) ) ]
430+ #[ serde( rename = "loadbalanced" ) ]
431+ pub load_balanced : Option < bool > ,
432+
428433 /// When running a read operation with a ReadPreference that allows selecting secondaries,
429434 /// `local_threshold` is used to determine how much longer the average round trip time between
430435 /// the driver and server is allowed compared to the least round trip time of all the suitable
@@ -554,11 +559,6 @@ pub struct ClientOptions {
554559 #[ serde( skip) ]
555560 pub ( crate ) resolver_config : Option < ResolverConfig > ,
556561
557- /// Whether or not the client is connecting to a MongoDB cluster through a load balancer.
558- #[ builder( default , setter( skip) ) ]
559- #[ serde( rename = "loadbalanced" ) ]
560- pub ( crate ) load_balanced : Option < bool > ,
561-
562562 /// Control test behavior of the client.
563563 #[ cfg( test) ]
564564 #[ builder( default , setter( skip) ) ]
You can’t perform that action at this time.
0 commit comments