pub struct JourneyResult {
pub trip_id: String,
pub mode: String,
pub line: Option<String>,
pub operator: Option<String>,
pub headsign: Option<String>,
pub realtime: bool,
pub cancelled: bool,
pub stops: Vec<JourneyStop>,
pub alerts: Vec<Alert>,
pub realtime_as_of: Option<String>,
pub attribution: Attribution,
pub warnings: Vec<String>,
}Expand description
One trip with all its stops.
Fields§
§trip_id: String§mode: String§line: Option<String>§operator: Option<String>§headsign: Option<String>§realtime: bool§cancelled: boolWhether the trip is cancelled.
stops: Vec<JourneyStop>§alerts: Vec<Alert>§realtime_as_of: Option<String>When RMV last updated its realtime data.
attribution: Attribution§warnings: Vec<String>Trait Implementations§
Source§impl Clone for JourneyResult
impl Clone for JourneyResult
Source§impl Debug for JourneyResult
impl Debug for JourneyResult
Source§impl<'de> Deserialize<'de> for JourneyResult
impl<'de> Deserialize<'de> for JourneyResult
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 Eq for JourneyResult
Source§impl JsonSchema for JourneyResult
impl JsonSchema for JourneyResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for JourneyResult
impl PartialEq for JourneyResult
Source§impl Serialize for JourneyResult
impl Serialize for JourneyResult
impl StructuralPartialEq for JourneyResult
Auto Trait Implementations§
impl Forget for JourneyResult
impl Freeze for JourneyResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<JourneyStop>: Freeze,
PhantomData<Alert>: Freeze,
PhantomData<String>: Freeze,
impl Move for JourneyResult
impl RefUnwindSafe for JourneyResult
impl Send for JourneyResultwhere
RawVecInner: Send,
impl Sync for JourneyResultwhere
RawVecInner: Sync,
impl Unpin for JourneyResult
impl UnsafeUnpin for JourneyResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<JourneyStop>: UnsafeUnpin,
PhantomData<Alert>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for JourneyResultwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.