pub struct GTFSRealtimeHeader {
pub gtfs_realtime_version: String,
pub incrementality: GTFSIncrementality,
pub timestamp: Option<Date>,
pub feed_version: Option<String>,
}Expand description
Metadata about a feed, included in feed messages.
Fields§
§gtfs_realtime_version: StringVersion of the feed specification. The current version is 2.0. Valid versions are “2.0”, “1.0”.
incrementality: GTFSIncrementalityDetermines whether the current fetch is incremental. Currently, DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds that use this mode. There are discussions on the GTFS Realtime mailing list around fully specifying the behavior of DIFFERENTIAL mode and the documentation will be updated when those discussions are finalized.
timestamp: Option<Date>This timestamp identifies the moment when the content of this feed has been created (in server time). In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
feed_version: Option<String>String that matches the feed_info.feed_version from the GTFS feed that the real time data is based on. Consumers can use this to identify which GTFS feed is currently active or when a new one is available to download.
Trait Implementations§
Source§impl Clone for GTFSRealtimeHeader
impl Clone for GTFSRealtimeHeader
Source§fn clone(&self) -> GTFSRealtimeHeader
fn clone(&self) -> GTFSRealtimeHeader
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeHeader
impl Debug for GTFSRealtimeHeader
Source§impl Default for GTFSRealtimeHeader
impl Default for GTFSRealtimeHeader
Source§impl PartialEq for GTFSRealtimeHeader
impl PartialEq for GTFSRealtimeHeader
Source§impl ProtoRead for GTFSRealtimeHeader
Read in the contents of the GTFSRealtimeHeader
impl ProtoRead for GTFSRealtimeHeader
Read in the contents of the GTFSRealtimeHeader
impl StructuralPartialEq for GTFSRealtimeHeader
Auto Trait Implementations§
impl Freeze for GTFSRealtimeHeader
impl RefUnwindSafe for GTFSRealtimeHeader
impl Send for GTFSRealtimeHeader
impl Sync for GTFSRealtimeHeader
impl Unpin for GTFSRealtimeHeader
impl UnwindSafe for GTFSRealtimeHeader
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().