pub struct FareAttribute {
pub id: String,
pub price: String,
pub currency: String,
pub payment_method: PaymentMethod,
pub transfers: Transfers,
pub agency_id: Option<String>,
pub transfer_duration: Option<usize>,
}Expand description
Defines one possible fare. See https://gtfs.org/reference/static/#fare_attributestxt
Fields§
§id: StringUnique technical (not for the traveller) identifier for the FareAttribute
price: StringFare price, in the unit specified by FareAttribute::currency
currency: StringCurrency used to pay the fare.
payment_method: PaymentMethodIndicates when the fare must be paid
transfers: TransfersIndicates the number of transfers permitted on this fare
agency_id: Option<String>Identifies the relevant agency for a fare
transfer_duration: Option<usize>Length of time in seconds before a transfer expires
Trait Implementations§
Source§impl Clone for FareAttribute
impl Clone for FareAttribute
Source§fn clone(&self) -> FareAttribute
fn clone(&self) -> FareAttribute
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 FareAttribute
impl Debug for FareAttribute
Source§impl<'de> Deserialize<'de> for FareAttribute
impl<'de> Deserialize<'de> for FareAttribute
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 FareAttribute
impl PartialEq for FareAttribute
Source§impl Serialize for FareAttribute
impl Serialize for FareAttribute
Source§impl Type for FareAttribute
impl Type for FareAttribute
Source§fn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
impl Eq for FareAttribute
impl StructuralPartialEq for FareAttribute
Auto Trait Implementations§
impl Freeze for FareAttribute
impl RefUnwindSafe for FareAttribute
impl Send for FareAttribute
impl Sync for FareAttribute
impl Unpin for FareAttribute
impl UnwindSafe for FareAttribute
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.