pub struct OptimizeTours(/* private fields */);Expand description
The request builder for FleetRouting::optimize_tours calls.
§Example
use builder::fleet_routing::OptimizeTours;
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> OptimizeTours {
// ... details omitted ...
}Implementations§
Source§impl OptimizeTours
impl OptimizeTours
Sourcepub fn with_request<V: Into<OptimizeToursRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<OptimizeToursRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<OptimizeToursResponse>
pub async fn send(self) -> Result<OptimizeToursResponse>
Sends the request.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
This is a required field for requests.
Sourcepub fn set_timeout<T>(self, v: T) -> Self
pub fn set_timeout<T>(self, v: T) -> Self
Sets the value of timeout.
Sourcepub fn set_or_clear_timeout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_timeout<T>(self, v: Option<T>) -> Self
Sets or clears the value of timeout.
Sourcepub fn set_model<T>(self, v: T) -> Selfwhere
T: Into<ShipmentModel>,
pub fn set_model<T>(self, v: T) -> Selfwhere
T: Into<ShipmentModel>,
Sets the value of model.
Sourcepub fn set_or_clear_model<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShipmentModel>,
pub fn set_or_clear_model<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShipmentModel>,
Sets or clears the value of model.
Sourcepub fn set_solving_mode<T: Into<SolvingMode>>(self, v: T) -> Self
pub fn set_solving_mode<T: Into<SolvingMode>>(self, v: T) -> Self
Sets the value of solving_mode.
Sourcepub fn set_search_mode<T: Into<SearchMode>>(self, v: T) -> Self
pub fn set_search_mode<T: Into<SearchMode>>(self, v: T) -> Self
Sets the value of search_mode.
Sourcepub fn set_injected_first_solution_routes<T, V>(self, v: T) -> Self
pub fn set_injected_first_solution_routes<T, V>(self, v: T) -> Self
Sets the value of injected_first_solution_routes.
Sourcepub fn set_injected_solution_constraint<T>(self, v: T) -> Selfwhere
T: Into<InjectedSolutionConstraint>,
pub fn set_injected_solution_constraint<T>(self, v: T) -> Selfwhere
T: Into<InjectedSolutionConstraint>,
Sets the value of injected_solution_constraint.
Sourcepub fn set_or_clear_injected_solution_constraint<T>(self, v: Option<T>) -> Selfwhere
T: Into<InjectedSolutionConstraint>,
pub fn set_or_clear_injected_solution_constraint<T>(self, v: Option<T>) -> Selfwhere
T: Into<InjectedSolutionConstraint>,
Sets or clears the value of injected_solution_constraint.
Sourcepub fn set_refresh_details_routes<T, V>(self, v: T) -> Self
pub fn set_refresh_details_routes<T, V>(self, v: T) -> Self
Sets the value of refresh_details_routes.
Sourcepub fn set_interpret_injected_solutions_using_labels<T: Into<bool>>(
self,
v: T,
) -> Self
pub fn set_interpret_injected_solutions_using_labels<T: Into<bool>>( self, v: T, ) -> Self
Sets the value of interpret_injected_solutions_using_labels.
Sourcepub fn set_consider_road_traffic<T: Into<bool>>(self, v: T) -> Self
pub fn set_consider_road_traffic<T: Into<bool>>(self, v: T) -> Self
Sets the value of consider_road_traffic.
Sourcepub fn set_populate_polylines<T: Into<bool>>(self, v: T) -> Self
pub fn set_populate_polylines<T: Into<bool>>(self, v: T) -> Self
Sets the value of populate_polylines.
Sourcepub fn set_populate_transition_polylines<T: Into<bool>>(self, v: T) -> Self
pub fn set_populate_transition_polylines<T: Into<bool>>(self, v: T) -> Self
Sets the value of populate_transition_polylines.
Sourcepub fn set_allow_large_deadline_despite_interruption_risk<T: Into<bool>>(
self,
v: T,
) -> Self
pub fn set_allow_large_deadline_despite_interruption_risk<T: Into<bool>>( self, v: T, ) -> Self
Sets the value of allow_large_deadline_despite_interruption_risk.
Sourcepub fn set_use_geodesic_distances<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_geodesic_distances<T: Into<bool>>(self, v: T) -> Self
Sets the value of use_geodesic_distances.
Sourcepub fn set_geodesic_meters_per_second<T>(self, v: T) -> Self
pub fn set_geodesic_meters_per_second<T>(self, v: T) -> Self
Sets the value of geodesic_meters_per_second.
Sourcepub fn set_or_clear_geodesic_meters_per_second<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_geodesic_meters_per_second<T>(self, v: Option<T>) -> Self
Sets or clears the value of geodesic_meters_per_second.
Sourcepub fn set_max_validation_errors<T>(self, v: T) -> Self
pub fn set_max_validation_errors<T>(self, v: T) -> Self
Sets the value of max_validation_errors.
Sourcepub fn set_or_clear_max_validation_errors<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_max_validation_errors<T>(self, v: Option<T>) -> Self
Sets or clears the value of max_validation_errors.
Sourcepub fn set_populate_travel_step_polylines<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_populate_travel_step_polylines<T: Into<bool>>(self, v: T) -> Self
Sets the value of populate_travel_step_polylines.
Trait Implementations§
Source§impl Clone for OptimizeTours
impl Clone for OptimizeTours
Source§fn clone(&self) -> OptimizeTours
fn clone(&self) -> OptimizeTours
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for OptimizeTours
impl !RefUnwindSafe for OptimizeTours
impl Send for OptimizeTours
impl Sync for OptimizeTours
impl Unpin for OptimizeTours
impl !UnwindSafe for OptimizeTours
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.