pub enum ProductCode {
FaresFor2010(u16),
FaresFor2014(u16),
}
Expand description
Indicates whether a PeriodPass or Ticket uses the old-style fares and zones, or the new. 2010 is the old-style, while 2014 is the new-style.
Variants§
Implementations§
Source§impl ProductCode
impl ProductCode
pub const FARES_2010_TYPE: u8 = 0u8
pub const FARES_2014_TYPE: u8 = 1u8
Trait Implementations§
Source§impl Debug for ProductCode
impl Debug for ProductCode
Source§impl From<&ProductCode> for u16
impl From<&ProductCode> for u16
Source§fn from(val: &ProductCode) -> Self
fn from(val: &ProductCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProductCode
impl RefUnwindSafe for ProductCode
impl Send for ProductCode
impl Sync for ProductCode
impl Unpin for ProductCode
impl UnwindSafe for ProductCode
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