pub enum ValidityArea {
OldZone(u8),
Zone(Vec<ValidityZone>),
Vehicle(VehicleType),
}
Expand description
Represents an area in which, or a vehicle for which, a ticket is valid.
Variants§
Implementations§
Source§impl ValidityArea
impl ValidityArea
pub const OLD_ZONE_TYPE: u8 = 0u8
pub const VEHICLE_TYPE: u8 = 1u8
pub const NEW_ZONE_TYPE: u8 = 2u8
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidityArea
impl RefUnwindSafe for ValidityArea
impl Send for ValidityArea
impl Sync for ValidityArea
impl Unpin for ValidityArea
impl UnwindSafe for ValidityArea
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