pub struct OptimizeToursLongRunning(/* private fields */);Expand description
The request builder for RouteOptimization::optimize_tours_long_running calls.
§Example
use google_cloud_lro::Poller;
let builder = prepare_request_builder();
let response = builder.poller().until_done().await?;
fn prepare_request_builder() -> OptimizeToursLongRunning {
// ... details omitted ...
}Implementations§
Source§impl OptimizeToursLongRunning
impl OptimizeToursLongRunning
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<Operation>
pub async fn send(self) -> Result<Operation>
Sends the request.
§Long running operations
This starts, but does not poll, a longrunning operation. More information on optimize_tours_long_running.
Sourcepub fn poller(
self,
) -> impl Poller<OptimizeToursResponse, OptimizeToursLongRunningMetadata>
pub fn poller( self, ) -> impl Poller<OptimizeToursResponse, OptimizeToursLongRunningMetadata>
Creates a Poller to work with optimize_tours_long_running.
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.
Trait Implementations§
Source§impl Clone for OptimizeToursLongRunning
impl Clone for OptimizeToursLongRunning
Source§fn clone(&self) -> OptimizeToursLongRunning
fn clone(&self) -> OptimizeToursLongRunning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for OptimizeToursLongRunning
impl !UnwindSafe for OptimizeToursLongRunning
impl Freeze for OptimizeToursLongRunning
impl Send for OptimizeToursLongRunning
impl Sync for OptimizeToursLongRunning
impl Unpin for OptimizeToursLongRunning
impl UnsafeUnpin for OptimizeToursLongRunning
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> 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.