pub struct FareProduct {
pub id: String,
pub name: Option<String>,
pub rider_category_id: Option<String>,
pub fare_media_id: Option<String>,
pub amount: String,
pub currency: String,
}Expand description
Used to describe the range of fares available for purchase by riders or taken into account when computing the total fare for journeys with multiple legs, such as transfer costs. https://gtfs.org/documentation/schedule/reference/#fare_productstxt
Fields§
§id: StringIdentifies a fare product or set of fare products.
name: Option<String>The name of the fare product as displayed to riders.
rider_category_id: Option<String>Identifies a rider category eligible for the fare product.
fare_media_id: Option<String>Identifies a fare media that can be employed to use the fare product during the trip.
amount: StringThe cost of the fare product. May be negative to represent transfer discounts. May be zero to represent a fare product that is free.
currency: StringThe currency of the cost of the fare product.
Trait Implementations§
Source§impl Clone for FareProduct
impl Clone for FareProduct
Source§fn clone(&self) -> FareProduct
fn clone(&self) -> FareProduct
Returns a duplicate 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 FareProduct
impl Debug for FareProduct
Source§impl<'de> Deserialize<'de> for FareProduct
impl<'de> Deserialize<'de> for FareProduct
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 FareProduct
impl PartialEq for FareProduct
Source§impl Serialize for FareProduct
impl Serialize for FareProduct
Source§impl Type for FareProduct
impl Type for FareProduct
Source§fn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
impl Eq for FareProduct
impl StructuralPartialEq for FareProduct
Auto Trait Implementations§
impl Freeze for FareProduct
impl RefUnwindSafe for FareProduct
impl Send for FareProduct
impl Sync for FareProduct
impl Unpin for FareProduct
impl UnwindSafe for FareProduct
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.