Enum gtfs_structures::DirectionType
source · pub enum DirectionType {
Outbound,
Inbound,
}
Expand description
Defines the direction of a [Trip], only for display, not for routing. See https://gtfs.org/reference/static/#tripstxt direction_id
Variants§
Outbound
Travel in one direction (e.g. outbound travel).
Inbound
Travel in the opposite direction (e.g. inbound travel).
Trait Implementations§
source§impl Clone for DirectionType
impl Clone for DirectionType
source§fn clone(&self) -> DirectionType
fn clone(&self) -> DirectionType
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 DirectionType
impl Debug for DirectionType
source§impl<'de> Deserialize<'de> for DirectionType
impl<'de> Deserialize<'de> for DirectionType
source§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
source§impl PartialEq for DirectionType
impl PartialEq for DirectionType
source§fn eq(&self, other: &DirectionType) -> bool
fn eq(&self, other: &DirectionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DirectionType
impl Serialize for DirectionType
impl Copy for DirectionType
impl Eq for DirectionType
impl StructuralPartialEq for DirectionType
Auto Trait Implementations§
impl Freeze for DirectionType
impl RefUnwindSafe for DirectionType
impl Send for DirectionType
impl Sync for DirectionType
impl Unpin for DirectionType
impl UnwindSafe for DirectionType
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.