pub struct RiderCategory {
pub id: String,
pub name: String,
pub is_default_fare_category: DefaultFareCategory,
pub eligibility_url: Option<String>,
}
Expand description
Defines categories of riders (e.g. elderly, student). https://gtfs.org/documentation/schedule/reference/#rider_categoriestxt
Fields§
§id: String
Identifies a rider category.
name: String
Rider category name as displayed to the rider.
is_default_fare_category: DefaultFareCategory
is_default_fare_category
eligibility_url: Option<String>
URL of a web page, usually from the operating agency, that provides detailed information about a specific rider category and/or describes its eligibility criteria.
Trait Implementations§
Source§impl Clone for RiderCategory
impl Clone for RiderCategory
Source§fn clone(&self) -> RiderCategory
fn clone(&self) -> RiderCategory
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 RiderCategory
impl Debug for RiderCategory
Source§impl<'de> Deserialize<'de> for RiderCategory
impl<'de> Deserialize<'de> for RiderCategory
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 RiderCategory
impl PartialEq for RiderCategory
Source§impl Serialize for RiderCategory
impl Serialize for RiderCategory
Source§impl Type for RiderCategory
impl Type for RiderCategory
Source§fn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
impl Eq for RiderCategory
impl StructuralPartialEq for RiderCategory
Auto Trait Implementations§
impl Freeze for RiderCategory
impl RefUnwindSafe for RiderCategory
impl Send for RiderCategory
impl Sync for RiderCategory
impl Unpin for RiderCategory
impl UnwindSafe for RiderCategory
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.