pub enum BikesAllowedType {
NoBikeInfo,
AtLeastOneBike,
NoBikesAllowed,
Unknown(i16),
}
Expand description
Is the [Trip] accessible with a bike. See https://gtfs.org/reference/static/#tripstxt bikes_allowed
Variants§
NoBikeInfo
No bike information for the trip
AtLeastOneBike
Vehicle being used on this particular trip can accommodate at least one bicycle
NoBikesAllowed
No bicycles are allowed on this trip
Unknown(i16)
An unknown value not in the specification
Trait Implementations§
source§impl Clone for BikesAllowedType
impl Clone for BikesAllowedType
source§fn clone(&self) -> BikesAllowedType
fn clone(&self) -> BikesAllowedType
Returns a copy 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§impl Debug for BikesAllowedType
impl Debug for BikesAllowedType
source§impl Default for BikesAllowedType
impl Default for BikesAllowedType
source§impl<'de> Deserialize<'de> for BikesAllowedType
impl<'de> Deserialize<'de> for BikesAllowedType
source§fn deserialize<D>(deserializer: D) -> Result<BikesAllowedType, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<BikesAllowedType, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for BikesAllowedType
impl Hash for BikesAllowedType
source§impl PartialEq for BikesAllowedType
impl PartialEq for BikesAllowedType
source§fn eq(&self, other: &BikesAllowedType) -> bool
fn eq(&self, other: &BikesAllowedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BikesAllowedType
impl Serialize for BikesAllowedType
impl Copy for BikesAllowedType
impl Eq for BikesAllowedType
impl StructuralPartialEq for BikesAllowedType
Auto Trait Implementations§
impl Freeze for BikesAllowedType
impl RefUnwindSafe for BikesAllowedType
impl Send for BikesAllowedType
impl Sync for BikesAllowedType
impl Unpin for BikesAllowedType
impl UnwindSafe for BikesAllowedType
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<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.