pub struct GTFSRouteNetwork {
pub network_id: String,
pub route_id: String,
}Expand description
§Route Networks
Conditionally Forbidden
Assigns routes (routes.route_id) to networks (networks.network_id).
This file is forbidden if network_id exists in routes.txt. Otherwise, it is optional.
Fields§
§network_id: StringRequired
Identifies a network (networks.network_id) to which one or multiple routes belong.
route_id: StringRequired
Identifies a route (routes.route_id). One route can only belong to one network.
Implementations§
Source§impl GTFSRouteNetwork
impl GTFSRouteNetwork
Sourcepub fn new(source: &str) -> Vec<GTFSRouteNetwork>
pub fn new(source: &str) -> Vec<GTFSRouteNetwork>
Create a new GTFSRouteNetwork
Trait Implementations§
Source§impl Clone for GTFSRouteNetwork
impl Clone for GTFSRouteNetwork
Source§fn clone(&self) -> GTFSRouteNetwork
fn clone(&self) -> GTFSRouteNetwork
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRouteNetwork
impl Debug for GTFSRouteNetwork
Source§impl Default for GTFSRouteNetwork
impl Default for GTFSRouteNetwork
Source§fn default() -> GTFSRouteNetwork
fn default() -> GTFSRouteNetwork
Source§impl From<&Map<String, ValueType>> for GTFSRouteNetwork
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSRouteNetwork
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSRouteNetwork
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSRouteNetwork
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSRouteNetwork> for MValue
Starting from a struct, convert to an MValue
impl From<GTFSRouteNetwork> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GTFSRouteNetwork) -> MValue
fn from(value: GTFSRouteNetwork) -> MValue
Source§impl From<GTFSRouteNetwork> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSRouteNetwork> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GTFSRouteNetwork) -> ValueType
fn from(value: GTFSRouteNetwork) -> ValueType
Source§impl From<Map<String, ValueType>> for GTFSRouteNetwork
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GTFSRouteNetwork
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GTFSRouteNetwork
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSRouteNetwork
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GTFSRouteNetwork
impl PartialEq for GTFSRouteNetwork
impl MValueCompatible for GTFSRouteNetwork
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSRouteNetwork
Auto Trait Implementations§
impl Freeze for GTFSRouteNetwork
impl RefUnwindSafe for GTFSRouteNetwork
impl Send for GTFSRouteNetwork
impl Sync for GTFSRouteNetwork
impl Unpin for GTFSRouteNetwork
impl UnwindSafe for GTFSRouteNetwork
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().