Struct GatelogueData

Source
pub struct GatelogueData {
    pub timestamp: String,
    pub version: u64,
    pub nodes: HashMap<ID, Node>,
}

Fields§

§timestamp: String§version: u64§nodes: HashMap<ID, Node>

Implementations§

Source§

impl GatelogueData

Source

pub fn air_airlines(&self) -> impl Iterator<Item = &AirAirline>

Source

pub fn air_airports(&self) -> impl Iterator<Item = &AirAirport>

Source

pub fn air_flights(&self) -> impl Iterator<Item = &AirFlight>

Source

pub fn air_gates(&self) -> impl Iterator<Item = &AirGate>

Source

pub fn bus_companies(&self) -> impl Iterator<Item = &BusCompany>

Source

pub fn bus_lines(&self) -> impl Iterator<Item = &BusLine>

Source

pub fn bus_stops(&self) -> impl Iterator<Item = &BusStop>

Source

pub fn rail_companies(&self) -> impl Iterator<Item = &RailCompany>

Source

pub fn rail_lines(&self) -> impl Iterator<Item = &RailLine>

Source

pub fn rail_stations(&self) -> impl Iterator<Item = &RailStation>

Source

pub fn sea_companies(&self) -> impl Iterator<Item = &SeaCompany>

Source

pub fn sea_lines(&self) -> impl Iterator<Item = &SeaLine>

Source

pub fn sea_stops(&self) -> impl Iterator<Item = &SeaStop>

Source

pub fn spawn_warps(&self) -> impl Iterator<Item = &SpawnWarp>

Source

pub fn towns(&self) -> impl Iterator<Item = &Town>

Source

pub fn air_airlines_mut(&mut self) -> impl Iterator<Item = &mut AirAirline>

Source

pub fn air_airports_mut(&mut self) -> impl Iterator<Item = &mut AirAirport>

Source

pub fn air_flights_mut(&mut self) -> impl Iterator<Item = &mut AirFlight>

Source

pub fn air_gates_mut(&mut self) -> impl Iterator<Item = &mut AirGate>

Source

pub fn bus_companies_mut(&mut self) -> impl Iterator<Item = &mut BusCompany>

Source

pub fn bus_lines_mut(&mut self) -> impl Iterator<Item = &mut BusLine>

Source

pub fn bus_stops_mut(&mut self) -> impl Iterator<Item = &mut BusStop>

Source

pub fn rail_companies_mut(&mut self) -> impl Iterator<Item = &mut RailCompany>

Source

pub fn rail_lines_mut(&mut self) -> impl Iterator<Item = &mut RailLine>

Source

pub fn rail_stations_mut(&mut self) -> impl Iterator<Item = &mut RailStation>

Source

pub fn sea_companies_mut(&mut self) -> impl Iterator<Item = &mut SeaCompany>

Source

pub fn sea_lines_mut(&mut self) -> impl Iterator<Item = &mut SeaLine>

Source

pub fn sea_stops_mut(&mut self) -> impl Iterator<Item = &mut SeaStop>

Source

pub fn spawn_warps_mut(&mut self) -> impl Iterator<Item = &mut SpawnWarp>

Source

pub fn towns_mut(&mut self) -> impl Iterator<Item = &mut Town>

Source

pub fn get_air_airline(&self, id: ID) -> Result<&AirAirline>

Source

pub fn get_air_airport(&self, id: ID) -> Result<&AirAirport>

Source

pub fn get_air_flight(&self, id: ID) -> Result<&AirFlight>

Source

pub fn get_air_gate(&self, id: ID) -> Result<&AirGate>

Source

pub fn get_bus_company(&self, id: ID) -> Result<&BusCompany>

Source

pub fn get_bus_line(&self, id: ID) -> Result<&BusLine>

Source

pub fn get_bus_stop(&self, id: ID) -> Result<&BusStop>

Source

pub fn get_rail_company(&self, id: ID) -> Result<&RailCompany>

Source

pub fn get_rail_line(&self, id: ID) -> Result<&RailLine>

Source

pub fn get_rail_station(&self, id: ID) -> Result<&RailStation>

Source

pub fn get_sea_company(&self, id: ID) -> Result<&SeaCompany>

Source

pub fn get_sea_line(&self, id: ID) -> Result<&SeaLine>

Source

pub fn get_sea_stop(&self, id: ID) -> Result<&SeaStop>

Source

pub fn get_spawn_warp(&self, id: ID) -> Result<&SpawnWarp>

Source

pub fn get_town(&self, id: ID) -> Result<&Town>

Source

pub fn get_air_airline_mut(&mut self, id: ID) -> Result<&mut AirAirline>

Source

pub fn get_air_airport_mut(&mut self, id: ID) -> Result<&mut AirAirport>

Source

pub fn get_air_flight_mut(&mut self, id: ID) -> Result<&mut AirFlight>

Source

pub fn get_air_gate_mut(&mut self, id: ID) -> Result<&mut AirGate>

Source

pub fn get_bus_company_mut(&mut self, id: ID) -> Result<&mut BusCompany>

Source

pub fn get_bus_line_mut(&mut self, id: ID) -> Result<&mut BusLine>

Source

pub fn get_bus_stop_mut(&mut self, id: ID) -> Result<&mut BusStop>

Source

pub fn get_rail_company_mut(&mut self, id: ID) -> Result<&mut RailCompany>

Source

pub fn get_rail_line_mut(&mut self, id: ID) -> Result<&mut RailLine>

Source

pub fn get_rail_station_mut(&mut self, id: ID) -> Result<&mut RailStation>

Source

pub fn get_sea_company_mut(&mut self, id: ID) -> Result<&mut SeaCompany>

Source

pub fn get_sea_line_mut(&mut self, id: ID) -> Result<&mut SeaLine>

Source

pub fn get_sea_stop_mut(&mut self, id: ID) -> Result<&mut SeaStop>

Source

pub fn get_spawn_warp_mut(&mut self, id: ID) -> Result<&mut SpawnWarp>

Source

pub fn get_town_mut(&mut self, id: ID) -> Result<&mut Town>

Trait Implementations§

Source§

impl Clone for GatelogueData

Source§

fn clone(&self) -> GatelogueData

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GatelogueData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GatelogueData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GatelogueData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,