pub struct TripAllocationConstraint {
pub allocation_unit: String,
pub max_units: Option<Option<i32>>,
pub duration_unit: Option<Option<String>>,
pub required_processes: Vec<String>,
}Expand description
TripAllocationConstraint : constraint on the use of a multiple trip ticket
Fields§
§allocation_unit: StringValues from the Trip Allocation Unit Code List Unit to allocate trips in a multi-trip fare. Trips can be allocated per day (e.g. Eurail) or per duration (e.g. multiples of a duration unit to cover the trip) or as single trips (e.g. carnet)) Known Values: - NONE: Individual trips don’t need to be allocated. - TRIP: allocation per individual trip. - DAY: The allocation is per travel day. - DURATION: the allocation is per duration.
max_units: Option<Option<i32>>maximum number of allowed units to be allocated
duration_unit: Option<Option<String>>multiples of this duration can be allocated
required_processes: Vec<String>one of the listed processes is required for the allocation of a single trip
Implementations§
Trait Implementations§
Source§impl Clone for TripAllocationConstraint
impl Clone for TripAllocationConstraint
Source§fn clone(&self) -> TripAllocationConstraint
fn clone(&self) -> TripAllocationConstraint
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 TripAllocationConstraint
impl Debug for TripAllocationConstraint
Source§impl Default for TripAllocationConstraint
impl Default for TripAllocationConstraint
Source§fn default() -> TripAllocationConstraint
fn default() -> TripAllocationConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripAllocationConstraint
impl<'de> Deserialize<'de> for TripAllocationConstraint
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 TripAllocationConstraint
impl PartialEq for TripAllocationConstraint
Source§impl Serialize for TripAllocationConstraint
impl Serialize for TripAllocationConstraint
impl StructuralPartialEq for TripAllocationConstraint
Auto Trait Implementations§
impl Freeze for TripAllocationConstraint
impl RefUnwindSafe for TripAllocationConstraint
impl Send for TripAllocationConstraint
impl Sync for TripAllocationConstraint
impl Unpin for TripAllocationConstraint
impl UnwindSafe for TripAllocationConstraint
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