pub struct TripSpecificationSummary {
pub id: String,
pub origin: Option<Box<PlaceRef>>,
pub destination: Option<Box<PlaceRef>>,
}Expand description
TripSpecificationSummary : Trip specification summary. Provided by OJP. It requires the id of an already existing trip to change and specifies the parameters which must be used to generate the new trip.
Fields§
§id: StringThe id of an already existing trip to change.
origin: Option<Box<PlaceRef>>§destination: Option<Box<PlaceRef>>Implementations§
Source§impl TripSpecificationSummary
impl TripSpecificationSummary
Sourcepub fn new(id: String) -> TripSpecificationSummary
pub fn new(id: String) -> TripSpecificationSummary
Trip specification summary. Provided by OJP. It requires the id of an already existing trip to change and specifies the parameters which must be used to generate the new trip.
Trait Implementations§
Source§impl Clone for TripSpecificationSummary
impl Clone for TripSpecificationSummary
Source§fn clone(&self) -> TripSpecificationSummary
fn clone(&self) -> TripSpecificationSummary
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 TripSpecificationSummary
impl Debug for TripSpecificationSummary
Source§impl Default for TripSpecificationSummary
impl Default for TripSpecificationSummary
Source§fn default() -> TripSpecificationSummary
fn default() -> TripSpecificationSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripSpecificationSummary
impl<'de> Deserialize<'de> for TripSpecificationSummary
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 TripSpecificationSummary
impl PartialEq for TripSpecificationSummary
Source§impl Serialize for TripSpecificationSummary
impl Serialize for TripSpecificationSummary
impl StructuralPartialEq for TripSpecificationSummary
Auto Trait Implementations§
impl Freeze for TripSpecificationSummary
impl RefUnwindSafe for TripSpecificationSummary
impl Send for TripSpecificationSummary
impl Sync for TripSpecificationSummary
impl Unpin for TripSpecificationSummary
impl UnwindSafe for TripSpecificationSummary
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