pub struct ZoneDefinition {
pub id: String,
pub name: Option<Option<String>>,
pub carrier: String,
pub polygon: Option<Box<Polygon>>,
pub nuts_codes: Option<Option<Vec<String>>>,
pub places: Option<Vec<PlaceRef>>,
}Expand description
ZoneDefinition : Definition of a zone used to define regional validity. The area of the zone can be defined via a geo-polygon, a complete list of all contained stations or area codes from the NUTS code list. The carrier is either the carrier or transport authority responsible for the definition.
Fields§
§id: String§name: Option<Option<String>>§carrier: StringIdentifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: ‘urn:uic:rics:1185:000011’
polygon: Option<Box<Polygon>>§nuts_codes: Option<Option<Vec<String>>>§places: Option<Vec<PlaceRef>>Implementations§
Source§impl ZoneDefinition
impl ZoneDefinition
Sourcepub fn new(id: String, carrier: String) -> ZoneDefinition
pub fn new(id: String, carrier: String) -> ZoneDefinition
Definition of a zone used to define regional validity. The area of the zone can be defined via a geo-polygon, a complete list of all contained stations or area codes from the NUTS code list. The carrier is either the carrier or transport authority responsible for the definition.
Trait Implementations§
Source§impl Clone for ZoneDefinition
impl Clone for ZoneDefinition
Source§fn clone(&self) -> ZoneDefinition
fn clone(&self) -> ZoneDefinition
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 ZoneDefinition
impl Debug for ZoneDefinition
Source§impl Default for ZoneDefinition
impl Default for ZoneDefinition
Source§fn default() -> ZoneDefinition
fn default() -> ZoneDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ZoneDefinition
impl<'de> Deserialize<'de> for ZoneDefinition
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 ZoneDefinition
impl PartialEq for ZoneDefinition
Source§impl Serialize for ZoneDefinition
impl Serialize for ZoneDefinition
impl StructuralPartialEq for ZoneDefinition
Auto Trait Implementations§
impl Freeze for ZoneDefinition
impl RefUnwindSafe for ZoneDefinition
impl Send for ZoneDefinition
impl Sync for ZoneDefinition
impl Unpin for ZoneDefinition
impl UnwindSafe for ZoneDefinition
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