pub struct GTFSRealtimeEntity {
pub id: String,
pub is_deleted: bool,
pub trip_update: Option<GTFSRealtimeTripUpdate>,
pub vehicle_position: Option<GTFSRealtimeVehiclePosition>,
pub alert: Option<GTFSRealtimeAlert>,
pub shape: Option<GTFSRealtimeShape>,
pub stop: Option<GTFSRealtimeStop>,
pub trip_modifications: Option<GTFSRealtimeTripModifications>,
}Expand description
A definition (or update) of an entity in the transit feed. May be a TripUpdate, VehiclePosition, Alert, Shape, Stop, and/or TripModifications. At least one of the above must be present (unless the entity is being deleted).
Fields§
§id: StringThe ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
is_deleted: boolWhether this entity is to be deleted. Relevant only for incremental fetches
trip_update: Option<GTFSRealtimeTripUpdate>Trip update
vehicle_position: Option<GTFSRealtimeVehiclePosition>Realtime positioning information for a given vehicle.
alert: Option<GTFSRealtimeAlert>An alert
shape: Option<GTFSRealtimeShape>Describes the physical path that a vehicle takes when it’s not part of the (CSV) GTFS, such as for a detour. Shapes belong to Trips, and consist of a sequence of shape points. Tracing the points in order provides the path of the vehicle. Shapes do not need to intercept the location of Stops exactly, but all Stops on a trip should lie within a small distance of the shape for that trip, i.e. close to straight line segments connecting the shape points NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.
stop: Option<GTFSRealtimeStop>Describes a stop
trip_modifications: Option<GTFSRealtimeTripModifications>Trip modifications
Trait Implementations§
Source§impl Clone for GTFSRealtimeEntity
impl Clone for GTFSRealtimeEntity
Source§fn clone(&self) -> GTFSRealtimeEntity
fn clone(&self) -> GTFSRealtimeEntity
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeEntity
impl Debug for GTFSRealtimeEntity
Source§impl Default for GTFSRealtimeEntity
impl Default for GTFSRealtimeEntity
Source§fn default() -> GTFSRealtimeEntity
fn default() -> GTFSRealtimeEntity
Source§impl From<>FSRealtimeEntity> for GTFSRealtimeEntityMessage
impl From<>FSRealtimeEntity> for GTFSRealtimeEntityMessage
Source§fn from(entity: >FSRealtimeEntity) -> Self
fn from(entity: >FSRealtimeEntity) -> Self
Source§impl PartialEq for GTFSRealtimeEntity
impl PartialEq for GTFSRealtimeEntity
Source§impl ProtoRead for GTFSRealtimeEntity
Read in the contents of the GTFSRealtimeEntity
impl ProtoRead for GTFSRealtimeEntity
Read in the contents of the GTFSRealtimeEntity
impl StructuralPartialEq for GTFSRealtimeEntity
Auto Trait Implementations§
impl Freeze for GTFSRealtimeEntity
impl RefUnwindSafe for GTFSRealtimeEntity
impl Send for GTFSRealtimeEntity
impl Sync for GTFSRealtimeEntity
impl Unpin for GTFSRealtimeEntity
impl UnwindSafe for GTFSRealtimeEntity
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
§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)
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>
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>
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>
ReadEndian::read_from_little_endian().