pub enum PathwayDirectionType {
Unidirectional,
Bidirectional,
}
Expand description
Indicates in which direction the pathway can be used
Variants§
Unidirectional
Unidirectional pathway, it can only be used from [from_stop_id] to [to_stop_id].
Bidirectional
Bidirectional pathway, it can be used in the two directions.
Trait Implementations§
source§impl Clone for PathwayDirectionType
impl Clone for PathwayDirectionType
source§fn clone(&self) -> PathwayDirectionType
fn clone(&self) -> PathwayDirectionType
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 PathwayDirectionType
impl Debug for PathwayDirectionType
source§impl Default for PathwayDirectionType
impl Default for PathwayDirectionType
source§impl<'de> Deserialize<'de> for PathwayDirectionType
impl<'de> Deserialize<'de> for PathwayDirectionType
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 PathwayDirectionType
impl PartialEq for PathwayDirectionType
source§fn eq(&self, other: &PathwayDirectionType) -> bool
fn eq(&self, other: &PathwayDirectionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PathwayDirectionType
impl Serialize for PathwayDirectionType
impl Copy for PathwayDirectionType
impl Eq for PathwayDirectionType
impl StructuralPartialEq for PathwayDirectionType
Auto Trait Implementations§
impl Freeze for PathwayDirectionType
impl RefUnwindSafe for PathwayDirectionType
impl Send for PathwayDirectionType
impl Sync for PathwayDirectionType
impl Unpin for PathwayDirectionType
impl UnwindSafe for PathwayDirectionType
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.