Struct gtfs_structures::FareRule
source · pub struct FareRule {
pub fare_id: String,
pub route_id: Option<String>,
pub origin_id: Option<String>,
pub destination_id: Option<String>,
pub contains_id: Option<String>,
}
Expand description
Defines one possible fare. See https://gtfs.org/schedule/reference/#fare_rulestxt
Fields§
§fare_id: String
ID of the referenced FareAttribute.
route_id: Option<String>
ID of a Route associated with the fare class
origin_id: Option<String>
Identifies an origin zone. References a Stop.zone_id
destination_id: Option<String>
Identifies an destination zone. References a Stop.zone_id
contains_id: Option<String>
Identifies the zones that a rider will enter while using a given fare class. References a Stop.zone_id
Trait Implementations§
source§impl<'de> Deserialize<'de> for FareRule
impl<'de> Deserialize<'de> for FareRule
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 FareRule
impl PartialEq for FareRule
impl Eq for FareRule
impl StructuralPartialEq for FareRule
Auto Trait Implementations§
impl Freeze for FareRule
impl RefUnwindSafe for FareRule
impl Send for FareRule
impl Sync for FareRule
impl Unpin for FareRule
impl UnwindSafe for FareRule
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.