pub struct Section {
pub start_place: Option<Box<PlaceRef>>,
pub start_leg_id: Option<Option<String>>,
pub end_place: Option<Box<PlaceRef>>,
pub end_leg_id: Option<Option<String>>,
pub external_trip_ref: Option<Option<String>>,
}Expand description
Section : Allows to indicate the sub-part of the trip. LegIds are only relevant if a trip can be referenced. When absent, the totality of the trip is priced.
Fields§
§start_place: Option<Box<PlaceRef>>§start_leg_id: Option<Option<String>>§end_place: Option<Box<PlaceRef>>§end_leg_id: Option<Option<String>>§external_trip_ref: Option<Option<String>>reference to a trip in case multiple trips are provided
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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