Struct gtfs_rt::TripModifications
source · pub struct TripModifications {
pub selected_trips: Vec<SelectedTrips>,
pub start_times: Vec<String>,
pub service_dates: Vec<String>,
pub modifications: Vec<Modification>,
}
Expand description
NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
Fields§
§selected_trips: Vec<SelectedTrips>
A list of selected trips affected by this TripModifications.
start_times: Vec<String>
A list of start times in the real-time trip descriptor for the trip_id defined in trip_ids. Useful to target multiple departures of a trip_id in a frequency-based trip.
service_dates: Vec<String>
Dates on which the modifications occurs, in the YYYYMMDD format. Producers SHOULD only transmit detours occurring within the next week.
The dates provided should not be used as user-facing information, if a user-facing start and end date needs to be provided, they can be provided in the linked service alert with service_alert_id
modifications: Vec<Modification>
A list of modifications to apply to the affected trips.
Trait Implementations§
source§impl Clone for TripModifications
impl Clone for TripModifications
source§fn clone(&self) -> TripModifications
fn clone(&self) -> TripModifications
Returns a copy 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 TripModifications
impl Debug for TripModifications
source§impl Default for TripModifications
impl Default for TripModifications
source§impl Message for TripModifications
impl Message for TripModifications
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for TripModifications
impl PartialEq for TripModifications
source§fn eq(&self, other: &TripModifications) -> bool
fn eq(&self, other: &TripModifications) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TripModifications
impl Serialize for TripModifications
impl StructuralPartialEq for TripModifications
Auto Trait Implementations§
impl Freeze for TripModifications
impl RefUnwindSafe for TripModifications
impl Send for TripModifications
impl Sync for TripModifications
impl Unpin for TripModifications
impl UnwindSafe for TripModifications
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