Struct transit_model::objects::Route
source · pub struct Route {
pub id: String,
pub name: String,
pub direction_type: Option<String>,
pub codes: KeysValues,
pub object_properties: PropertiesMap,
pub comment_links: CommentLinksT,
pub line_id: String,
pub geometry_id: Option<String>,
pub destination_id: Option<String>,
}
Fields§
§id: String
§name: String
§direction_type: Option<String>
§codes: KeysValues
§object_properties: PropertiesMap
§comment_links: CommentLinksT
§line_id: String
§geometry_id: Option<String>
§destination_id: Option<String>
Trait Implementations§
source§impl AddPrefix for Route
impl AddPrefix for Route
source§fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
Add the prefix to all elements of the object that needs to be prefixed.
PrefixConfiguration contains all the needed metadata to create the
complete prefix.
source§fn add_prefix(&mut self, prefix: &str)
fn add_prefix(&mut self, prefix: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
source§fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
A separator will be placed between the prefix and the identifier.
source§impl Codes for Route
impl Codes for Route
fn codes(&self) -> &KeysValues
fn codes_mut(&mut self) -> &mut KeysValues
source§impl CommentLinks for Route
impl CommentLinks for Route
fn comment_links(&self) -> &CommentLinksT
fn comment_links_mut(&mut self) -> &mut CommentLinksT
source§impl<'de> Deserialize<'de> for Route
impl<'de> Deserialize<'de> for Route
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 GetCorresponding<Route> for IdxSet<CommercialMode>
impl GetCorresponding<Route> for IdxSet<CommercialMode>
source§impl GetCorresponding<Route> for IdxSet<Contributor>
impl GetCorresponding<Route> for IdxSet<Contributor>
source§impl GetCorresponding<Route> for IdxSet<PhysicalMode>
impl GetCorresponding<Route> for IdxSet<PhysicalMode>
source§impl GetCorresponding<Route> for IdxSet<VehicleJourney>
impl GetCorresponding<Route> for IdxSet<VehicleJourney>
source§impl GetObjectType for Route
impl GetObjectType for Route
fn get_object_type() -> ObjectType
source§impl Id<Route> for VehicleJourney
impl Id<Route> for VehicleJourney
source§impl PartialEq<Route> for Route
impl PartialEq<Route> for Route
source§impl Properties for Route
impl Properties for Route
fn properties(&self) -> &PropertiesMap
fn properties_mut(&mut self) -> &mut PropertiesMap
impl Eq for Route
impl StructuralEq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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