Struct gtfs_rt::FeedHeader
source · pub struct FeedHeader {
pub gtfs_realtime_version: String,
pub incrementality: Option<i32>,
pub timestamp: Option<u64>,
}
Expand description
Metadata about a feed, included in feed messages.
Fields§
§gtfs_realtime_version: String
Version of the feed specification. The current version is 2.0.
incrementality: Option<i32>
§timestamp: Option<u64>
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).
Implementations§
source§impl FeedHeader
impl FeedHeader
pub fn incrementality(&self) -> Incrementality
pub fn set_incrementality(&mut self, value: Incrementality)
pub fn timestamp(&self) -> u64
Trait Implementations§
source§impl Clone for FeedHeader
impl Clone for FeedHeader
source§fn clone(&self) -> FeedHeader
fn clone(&self) -> FeedHeader
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 FeedHeader
impl Debug for FeedHeader
source§impl Default for FeedHeader
impl Default for FeedHeader
source§fn default() -> FeedHeader
fn default() -> FeedHeader
Returns the “default value” for a type. Read more
source§impl Message for FeedHeader
impl Message for FeedHeader
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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: IntoBuf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: IntoBuf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: IntoBuf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: IntoBuf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: IntoBuf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: IntoBuf,
Self: Sized,
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>where
B: IntoBuf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: IntoBuf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
. Read more