pub struct PointOfInterest {
pub object_type: String,
pub id: String,
pub alternative_ids: Option<Option<Vec<String>>>,
pub geo_position: Option<Box<GeoPosition>>,
pub ref: Option<Box<PlaceRef>>,
pub _links: Option<Vec<Link>>,
pub name: String,
pub code: String,
}Expand description
PointOfInterest : A type of place to or through which passengers may wish to navigate as part of their journey and which is modelled in detail by journey planners. Provided by OJP.
Fields§
§object_type: StringAttribute is used as discriminator for inheritance between data types.
id: Stringid defining the place. The code is provided as URN, relative URNs are allowed with base path urn:uic:stn ‘0850000’
alternative_ids: Option<Option<Vec<String>>>For a place with ids in different reference systems, the alternative ids can be returned. The reference system is encoded in the string. E.g.: ‘urn:uic:std:80000’, ‘x_swe:stn:10000’, ‘ch:1:sloid:343434’
geo_position: Option<Box<GeoPosition>>§ref: Option<Box<PlaceRef>>§_links: Option<Vec<Link>>Java Property Name: ‘links’
name: StringName or description of point of interest for use in passenger information.
code: Stringid of the Point of Interest.
Implementations§
Trait Implementations§
Source§impl Clone for PointOfInterest
impl Clone for PointOfInterest
Source§fn clone(&self) -> PointOfInterest
fn clone(&self) -> PointOfInterest
Returns a duplicate 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 PointOfInterest
impl Debug for PointOfInterest
Source§impl Default for PointOfInterest
impl Default for PointOfInterest
Source§fn default() -> PointOfInterest
fn default() -> PointOfInterest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PointOfInterest
impl<'de> Deserialize<'de> for PointOfInterest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for PointOfInterest
impl PartialEq for PointOfInterest
Source§impl Serialize for PointOfInterest
impl Serialize for PointOfInterest
impl StructuralPartialEq for PointOfInterest
Auto Trait Implementations§
impl Freeze for PointOfInterest
impl RefUnwindSafe for PointOfInterest
impl Send for PointOfInterest
impl Sync for PointOfInterest
impl Unpin for PointOfInterest
impl UnwindSafe for PointOfInterest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more