pub struct ShipNavRoute {
pub destination: ShipNavRouteWaypoint,
pub departure: ShipNavRouteWaypoint,
pub departure_time: String,
pub arrival: String,
}Expand description
The routing information for the ship’s most recent transit or current location.
Fields§
§destination: ShipNavRouteWaypoint§departure: ShipNavRouteWaypoint§departure_time: StringThe date time of the ship’s departure.
arrival: StringThe date time of the ship’s arrival. If the ship is in-transit, this is the expected time of arrival.
Implementations§
Sourcepub fn new(
destination: ShipNavRouteWaypoint,
departure: ShipNavRouteWaypoint,
departure_time: String,
arrival: String,
) -> ShipNavRoute
pub fn new( destination: ShipNavRouteWaypoint, departure: ShipNavRouteWaypoint, departure_time: String, arrival: String, ) -> ShipNavRoute
Create value with optional fields set to None.
Trait Implementations§
Source§fn clone(&self) -> ShipNavRoute
fn clone(&self) -> ShipNavRoute
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 moreSource§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§
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