pub struct RouteQuery {
pub targets: TargetSelection,
pub from: RouteFrom,
pub warp_range: Option<f64>,
pub within_ly: Option<f64>,
pub max_targets: Option<usize>,
pub algorithm: RoutingAlgorithm,
pub return_to_start: bool,
}Expand description
Parameters for a route query.
Fields§
§targets: TargetSelectionHow targets are selected.
from: RouteFromStarting point for the route.
warp_range: Option<f64>Ship warp range in light-years (for hop constraints and jump counts).
within_ly: Option<f64>Only consider targets within this radius in light-years.
max_targets: Option<usize>Maximum number of targets to visit.
algorithm: RoutingAlgorithmWhich routing algorithm to use.
return_to_start: boolWhether the route should return to the start.
Trait Implementations§
Source§impl Clone for RouteQuery
impl Clone for RouteQuery
Source§fn clone(&self) -> RouteQuery
fn clone(&self) -> RouteQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteQuery
impl RefUnwindSafe for RouteQuery
impl Send for RouteQuery
impl Sync for RouteQuery
impl Unpin for RouteQuery
impl UnsafeUnpin for RouteQuery
impl UnwindSafe for RouteQuery
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