pub struct Route {
pub uuid: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub distance_m: Option<f64>,
pub points: Vec<RoutePoint>,
}Expand description
A standalone route, as the wire carries it.
Fields§
§uuid: Option<String>The server’s own id, once it has one – the same None-until-
published convention Waypoint::uuid uses, for the same
reason.
name: Option<String>What the mariner calls it.
description: Option<String>Anything they wrote about it.
distance_m: Option<f64>Total length, when the caller has one to send or the server sent
one back. Never trusted over a fresh local recomputation –
routes::signalk’s own doc gives the reasoning.
points: Vec<RoutePoint>The line itself, in the order it is sailed.
Trait Implementations§
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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