pub struct TourOptions {
pub transport_mode: Option<TransportMode>,
pub provider_extra: Option<Value>,
}Expand description
Options for tour/sequence optimization.
Tour optimization involves complex problem definitions (fleet, plan,
configuration) that are entirely provider-specific. The core options
type is minimal; all provider-specific data goes through provider_extra.
Fields§
§transport_mode: Option<TransportMode>Transport mode for the tour (car, pedestrian, bicycle, etc.)
provider_extra: Option<Value>Provider-specific problem definition (HERE: TourProblem JSON; other providers: their format)
Trait Implementations§
Source§impl Clone for TourOptions
impl Clone for TourOptions
Source§fn clone(&self) -> TourOptions
fn clone(&self) -> TourOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TourOptions
impl Debug for TourOptions
Source§impl Default for TourOptions
impl Default for TourOptions
Source§fn default() -> TourOptions
fn default() -> TourOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TourOptions
impl<'de> Deserialize<'de> for TourOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TourOptions
impl RefUnwindSafe for TourOptions
impl Send for TourOptions
impl Sync for TourOptions
impl Unpin for TourOptions
impl UnsafeUnpin for TourOptions
impl UnwindSafe for TourOptions
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
Mutably borrows from an owned value. Read more