[−][src]Struct transit_model::model::Collections
The set of collections representing the model.
Fields
contributors: CollectionWithId<Contributor>
datasets: CollectionWithId<Dataset>
networks: CollectionWithId<Network>
commercial_modes: CollectionWithId<CommercialMode>
lines: CollectionWithId<Line>
routes: CollectionWithId<Route>
vehicle_journeys: CollectionWithId<VehicleJourney>
frequencies: Collection<Frequency>
physical_modes: CollectionWithId<PhysicalMode>
stop_areas: CollectionWithId<StopArea>
stop_points: CollectionWithId<StopPoint>
feed_infos: BTreeMap<String, String>
calendars: CollectionWithId<Calendar>
companies: CollectionWithId<Company>
comments: CollectionWithId<Comment>
equipments: CollectionWithId<Equipment>
transfers: Collection<Transfer>
trip_properties: CollectionWithId<TripProperty>
geometries: CollectionWithId<Geometry>
admin_stations: Collection<AdminStation>
stop_time_headsigns: HashMap<(Idx<VehicleJourney>, u32), String>
stop_time_ids: HashMap<(Idx<VehicleJourney>, u32), String>
stop_time_comments: HashMap<(Idx<VehicleJourney>, u32), Idx<Comment>>
prices_v1: Collection<PriceV1>
od_fares_v1: Collection<ODFareV1>
fares_v1: Collection<FareV1>
tickets: CollectionWithId<Ticket>
ticket_uses: CollectionWithId<TicketUse>
ticket_prices: Collection<TicketPrice>
ticket_use_perimeters: Collection<TicketUsePerimeter>
ticket_use_restrictions: Collection<TicketUseRestriction>
Methods
impl Collections
[src]
pub fn try_merge(&mut self, c: Collections) -> Result<()>
[src]
Merge the Collections
parameter into the current Collections
by consecutively merging
each collections representing the model. Fails in case of id collision.
pub fn restrict_period(
&mut self,
start_date: NaiveDate,
end_date: NaiveDate
) -> Result<()>
[src]
&mut self,
start_date: NaiveDate,
end_date: NaiveDate
) -> Result<()>
Restrict the validity period of the current Collections
with the start_date and end_date
pub fn sanitize(&mut self) -> Result<()>
[src]
Keep the collections consistent for the new model by purging unreferenced data by calendars
Trait Implementations
impl Default for Collections
[src]
impl Debug for Collections
[src]
impl<'de> Deserialize<'de> for Collections
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Collections
[src]
Auto Trait Implementations
impl Send for Collections
impl Sync for Collections
impl Unpin for Collections
impl UnwindSafe for Collections
impl RefUnwindSafe for Collections
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,