pub struct GTFSRealtimeEntitySelector {
pub agency_id: Option<String>,
pub route_id: Option<String>,
pub route_type: Option<i32>,
pub trip: Option<GTFSRealtimeTripDescriptor>,
pub stop_id: Option<String>,
pub direction_id: Option<u32>,
}Expand description
A selector for an entity in a GTFS feed. The values of the fields should correspond to the appropriate fields in the GTFS feed. At least one specifier must be given. If several are given, then the matching has to apply to all the given specifiers.
Fields§
§agency_id: Option<String>Corresponds to agency_id in GTFS
route_id: Option<String>Corresponds to route_id in GTFS
route_type: Option<i32>corresponds to route_type in GTFS. For example, 0 means “any route type”.
trip: Option<GTFSRealtimeTripDescriptor>Corresponds to trip_id in GTFS
stop_id: Option<String>Corresponds to stop_id in GTFS stops.txt
direction_id: Option<u32>Corresponds to trip direction_id in GTFS trips.txt. If provided the route_id must also be provided.
Trait Implementations§
Source§impl Clone for GTFSRealtimeEntitySelector
impl Clone for GTFSRealtimeEntitySelector
Source§fn clone(&self) -> GTFSRealtimeEntitySelector
fn clone(&self) -> GTFSRealtimeEntitySelector
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 Debug for GTFSRealtimeEntitySelector
impl Debug for GTFSRealtimeEntitySelector
Source§impl Default for GTFSRealtimeEntitySelector
impl Default for GTFSRealtimeEntitySelector
Source§fn default() -> GTFSRealtimeEntitySelector
fn default() -> GTFSRealtimeEntitySelector
Returns the “default value” for a type. Read more
Source§impl ProtoRead for GTFSRealtimeEntitySelector
Read in the contents of the GTFSRealtimeEntitySelector
impl ProtoRead for GTFSRealtimeEntitySelector
Read in the contents of the GTFSRealtimeEntitySelector
impl StructuralPartialEq for GTFSRealtimeEntitySelector
Auto Trait Implementations§
impl Freeze for GTFSRealtimeEntitySelector
impl RefUnwindSafe for GTFSRealtimeEntitySelector
impl Send for GTFSRealtimeEntitySelector
impl Sync for GTFSRealtimeEntitySelector
impl Unpin for GTFSRealtimeEntitySelector
impl UnwindSafe for GTFSRealtimeEntitySelector
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().