pub struct PlanResponse {
pub from: Place,
pub to: Place,
pub direct: Vec<Itinerary>,
pub itineraries: Vec<Itinerary>,
pub previous_page_cursor: String,
pub next_page_cursor: String,
}Expand description
The response of Plan.
Fields§
§from: Place§to: Place§direct: Vec<Itinerary>Connections without transit, like walking the whole way.
itineraries: Vec<Itinerary>§previous_page_cursor: StringPass as Plan::page_cursor for earlier
connections.
next_page_cursor: StringPass as Plan::page_cursor for later
connections.
Trait Implementations§
Source§impl Clone for PlanResponse
impl Clone for PlanResponse
Source§impl Debug for PlanResponse
impl Debug for PlanResponse
Source§impl Default for PlanResponse
impl Default for PlanResponse
Source§impl<'de> Deserialize<'de> for PlanResponsewhere
PlanResponse: Default,
impl<'de> Deserialize<'de> for PlanResponsewhere
PlanResponse: Default,
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 PlanResponse
impl PartialEq for PlanResponse
Source§impl Serialize for PlanResponse
impl Serialize for PlanResponse
impl StructuralPartialEq for PlanResponse
Auto Trait Implementations§
impl Forget for PlanResponse
impl Freeze for PlanResponse
impl Move for PlanResponse
impl RefUnwindSafe for PlanResponse
impl Send for PlanResponse
impl Sync for PlanResponse
impl Unpin for PlanResponse
impl UnsafeUnpin for PlanResponse
impl UnwindSafe for PlanResponse
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