pub enum TransferType {
Recommended,
Timed,
MinTime,
Impossible,
StayOnBoard,
MustAlight,
}
Expand description
Defines the type of a [StopTransfer]
Variants§
Recommended
Recommended transfer point between routes
Timed
Departing vehicle waits for arriving one
MinTime
Transfer requires a minimum amount of time between arrival and departure to ensure a connection.
Impossible
Transfer is not possible at this location
StayOnBoard
Passengers can stay onboard the same vehicle to transfer from one trip to another
MustAlight
In-seat transfers aren’t allowed between sequential trips. The passenger must alight from the vehicle and re-board.
Trait Implementations§
Source§impl Clone for TransferType
impl Clone for TransferType
Source§fn clone(&self) -> TransferType
fn clone(&self) -> TransferType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransferType
impl Debug for TransferType
Source§impl Default for TransferType
impl Default for TransferType
Source§impl<'de> Deserialize<'de> for TransferType
impl<'de> Deserialize<'de> for TransferType
Source§fn deserialize<D>(deserializer: D) -> Result<TransferType, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<TransferType, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TransferType
impl Hash for TransferType
Source§impl PartialEq for TransferType
impl PartialEq for TransferType
Source§impl Serialize for TransferType
impl Serialize for TransferType
impl Copy for TransferType
impl Eq for TransferType
impl StructuralPartialEq for TransferType
Auto Trait Implementations§
impl Freeze for TransferType
impl RefUnwindSafe for TransferType
impl Send for TransferType
impl Sync for TransferType
impl Unpin for TransferType
impl UnwindSafe for TransferType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.