pub struct GTFSRealtimeModifiedTripSelector {
pub modifications_id: Option<String>,
pub affected_trip_id: Option<String>,
pub start_time: Option<String>,
pub start_date: Option<Date>,
}Expand description
A descriptor that identifies an instance of a GTFS trip, or all instances of a trip along a route.
- To specify a single trip instance, the trip_id (and if necessary, start_time) is set. If route_id is also set, then it should be same as one that the given trip corresponds to.
- To specify all the trips along a given route, only the route_id should be set. Note that if the trip_id is not known, then stop sequence ids in TripUpdate are not sufficient, and stop_ids must be provided as well. In addition, absolute arrival/departure times must be provided.
Fields§
§modifications_id: Option<String>The ‘id’ from the FeedEntity in which the contained TripModifications object affects this trip.
affected_trip_id: Option<String>The trip_id from the GTFS feed that is modified by the modifications_id
start_time: Option<String>The initially scheduled start time of this trip instance, applied to the frequency based modified trip. Same definition as start_time in TripDescriptor.
start_date: Option<Date>The start date of this trip instance in YYYYMMDD format, applied to the modified trip. Same definition as start_date in TripDescriptor.
Trait Implementations§
Source§impl Clone for GTFSRealtimeModifiedTripSelector
impl Clone for GTFSRealtimeModifiedTripSelector
Source§fn clone(&self) -> GTFSRealtimeModifiedTripSelector
fn clone(&self) -> GTFSRealtimeModifiedTripSelector
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GTFSRealtimeModifiedTripSelector
impl Default for GTFSRealtimeModifiedTripSelector
Source§fn default() -> GTFSRealtimeModifiedTripSelector
fn default() -> GTFSRealtimeModifiedTripSelector
Returns the “default value” for a type. Read more
Source§impl ProtoRead for GTFSRealtimeModifiedTripSelector
Read in the contents of the GTFSRealtimeModifiedTripSelector
impl ProtoRead for GTFSRealtimeModifiedTripSelector
Read in the contents of the GTFSRealtimeModifiedTripSelector
Source§impl ProtoWrite for GTFSRealtimeModifiedTripSelector
Write in the contents of the GTFSRealtimeModifiedTripSelector
impl ProtoWrite for GTFSRealtimeModifiedTripSelector
Write in the contents of the GTFSRealtimeModifiedTripSelector
impl StructuralPartialEq for GTFSRealtimeModifiedTripSelector
Auto Trait Implementations§
impl Freeze for GTFSRealtimeModifiedTripSelector
impl RefUnwindSafe for GTFSRealtimeModifiedTripSelector
impl Send for GTFSRealtimeModifiedTripSelector
impl Sync for GTFSRealtimeModifiedTripSelector
impl Unpin for GTFSRealtimeModifiedTripSelector
impl UnwindSafe for GTFSRealtimeModifiedTripSelector
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().