Enum gtfs_structures::Availability
source · pub enum Availability {
InformationNotAvailable,
Available,
NotAvailable,
Unknown(i16),
}
Expand description
Generic enum to define if a service (like wheelchair boarding) is available
Variants§
InformationNotAvailable
No information if the service is available
Available
The service is available
NotAvailable
The service is not available
Unknown(i16)
An unknown value not in the specification
Trait Implementations§
source§impl Clone for Availability
impl Clone for Availability
source§fn clone(&self) -> Availability
fn clone(&self) -> Availability
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 Availability
impl Debug for Availability
source§impl Default for Availability
impl Default for Availability
source§impl<'de> Deserialize<'de> for Availability
impl<'de> Deserialize<'de> for Availability
source§fn deserialize<D>(deserializer: D) -> Result<Availability, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Availability, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Availability
impl Hash for Availability
source§impl PartialEq for Availability
impl PartialEq for Availability
source§fn eq(&self, other: &Availability) -> bool
fn eq(&self, other: &Availability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Availability
impl Serialize for Availability
impl Copy for Availability
impl Eq for Availability
impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnwindSafe for Availability
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.