pub struct FareReferenceStation {
pub name: String,
pub code: String,
pub carrier: String,
pub stations: Vec<StopPlaceRef>,
}Expand description
FareReferenceStation : Reference to a list of stations jointly valid in a fare. The fare reference station defines a set of station that are equivalent from a tariff point of view. The code is issued by the carrier. Needed to generate bar codes as well as fulfillments.
Fields§
§name: String§code: String§carrier: StringIdentifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: ‘urn:uic:rics:1185:000011’
stations: Vec<StopPlaceRef>Implementations§
Source§impl FareReferenceStation
impl FareReferenceStation
Sourcepub fn new(
name: String,
code: String,
carrier: String,
stations: Vec<StopPlaceRef>,
) -> FareReferenceStation
pub fn new( name: String, code: String, carrier: String, stations: Vec<StopPlaceRef>, ) -> FareReferenceStation
Reference to a list of stations jointly valid in a fare. The fare reference station defines a set of station that are equivalent from a tariff point of view. The code is issued by the carrier. Needed to generate bar codes as well as fulfillments.
Trait Implementations§
Source§impl Clone for FareReferenceStation
impl Clone for FareReferenceStation
Source§fn clone(&self) -> FareReferenceStation
fn clone(&self) -> FareReferenceStation
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 FareReferenceStation
impl Debug for FareReferenceStation
Source§impl Default for FareReferenceStation
impl Default for FareReferenceStation
Source§fn default() -> FareReferenceStation
fn default() -> FareReferenceStation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FareReferenceStation
impl<'de> Deserialize<'de> for FareReferenceStation
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 FareReferenceStation
impl PartialEq for FareReferenceStation
Source§impl Serialize for FareReferenceStation
impl Serialize for FareReferenceStation
impl StructuralPartialEq for FareReferenceStation
Auto Trait Implementations§
impl Freeze for FareReferenceStation
impl RefUnwindSafe for FareReferenceStation
impl Send for FareReferenceStation
impl Sync for FareReferenceStation
impl Unpin for FareReferenceStation
impl UnwindSafe for FareReferenceStation
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