pub struct TripInterruptionConstraint {
pub max_interruptions: i32,
pub max_duration: Option<Option<String>>,
pub total_max_duration: Option<Option<String>>,
pub required_processes: Vec<String>,
}Expand description
TripInterruptionConstraint : rules on allowed trip interruptions. Interruptions due to a train change indicated by a trip search must not be included here.
Fields§
§max_interruptions: i32maximum number of allowed interruptions
max_duration: Option<Option<String>>maximum duration of one interruption
total_max_duration: Option<Option<String>>maximum duration of all interruptions on the route
required_processes: Vec<String>one of the listed processes is required for the interruption of the trip
Implementations§
Trait Implementations§
Source§impl Clone for TripInterruptionConstraint
impl Clone for TripInterruptionConstraint
Source§fn clone(&self) -> TripInterruptionConstraint
fn clone(&self) -> TripInterruptionConstraint
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 TripInterruptionConstraint
impl Debug for TripInterruptionConstraint
Source§impl Default for TripInterruptionConstraint
impl Default for TripInterruptionConstraint
Source§fn default() -> TripInterruptionConstraint
fn default() -> TripInterruptionConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripInterruptionConstraint
impl<'de> Deserialize<'de> for TripInterruptionConstraint
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
impl StructuralPartialEq for TripInterruptionConstraint
Auto Trait Implementations§
impl Freeze for TripInterruptionConstraint
impl RefUnwindSafe for TripInterruptionConstraint
impl Send for TripInterruptionConstraint
impl Sync for TripInterruptionConstraint
impl Unpin for TripInterruptionConstraint
impl UnwindSafe for TripInterruptionConstraint
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