Enum gtfs_structures::Transfers
source · pub enum Transfers {
Unlimited,
NoTransfer,
UniqueTransfer,
TwoTransfers,
Other(i32),
}
Expand description
Defines how many transfers can be done with on [FareAttribute]
Variants§
Unlimited
Unlimited transfers are permitted
NoTransfer
No transfers permitted on this fare
UniqueTransfer
Riders may transfer once
TwoTransfers
Riders may transfer twice
Other(i32)
Other transfer values
Trait Implementations§
source§impl<'de> Deserialize<'de> for Transfers
impl<'de> Deserialize<'de> for Transfers
source§fn deserialize<D>(deserializer: D) -> Result<Transfers, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Transfers, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Transfers
impl Eq for Transfers
impl StructuralEq for Transfers
impl StructuralPartialEq for Transfers
Auto Trait Implementations§
impl RefUnwindSafe for Transfers
impl Send for Transfers
impl Sync for Transfers
impl Unpin for Transfers
impl UnwindSafe for Transfers
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.