Struct transit_model::objects::VehicleJourney
source · pub struct VehicleJourney {Show 16 fields
pub id: String,
pub codes: KeysValues,
pub object_properties: PropertiesMap,
pub comment_links: CommentLinksT,
pub route_id: String,
pub physical_mode_id: String,
pub dataset_id: String,
pub service_id: String,
pub headsign: Option<String>,
pub short_name: Option<String>,
pub block_id: Option<String>,
pub company_id: String,
pub trip_property_id: Option<String>,
pub geometry_id: Option<String>,
pub stop_times: Vec<StopTime>,
pub journey_pattern_id: Option<String>,
}
Fields§
§id: String
§codes: KeysValues
§object_properties: PropertiesMap
§comment_links: CommentLinksT
§route_id: String
§physical_mode_id: String
§dataset_id: String
§service_id: String
§headsign: Option<String>
§short_name: Option<String>
§block_id: Option<String>
§company_id: String
§trip_property_id: Option<String>
§geometry_id: Option<String>
§stop_times: Vec<StopTime>
§journey_pattern_id: Option<String>
Implementations§
source§impl VehicleJourney
impl VehicleJourney
pub fn sort_and_check_stop_times(&mut self) -> Result<(), StopTimeError>
Trait Implementations§
source§impl AddPrefix for VehicleJourney
impl AddPrefix for VehicleJourney
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 Clone for VehicleJourney
impl Clone for VehicleJourney
source§fn clone(&self) -> VehicleJourney
fn clone(&self) -> VehicleJourney
Returns a copy 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 Codes for VehicleJourney
impl Codes for VehicleJourney
fn codes(&self) -> &KeysValues
fn codes_mut(&mut self) -> &mut KeysValues
source§impl CommentLinks for VehicleJourney
impl CommentLinks for VehicleJourney
fn comment_links(&self) -> &CommentLinksT
fn comment_links_mut(&mut self) -> &mut CommentLinksT
source§impl Debug for VehicleJourney
impl Debug for VehicleJourney
source§impl Default for VehicleJourney
impl Default for VehicleJourney
source§fn default() -> VehicleJourney
fn default() -> VehicleJourney
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VehicleJourney
impl<'de> Deserialize<'de> for VehicleJourney
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<VehicleJourney> for IdxSet<Calendar>
impl GetCorresponding<VehicleJourney> for IdxSet<Calendar>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<CommercialMode>
impl GetCorresponding<VehicleJourney> for IdxSet<CommercialMode>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Company>
impl GetCorresponding<VehicleJourney> for IdxSet<Company>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Contributor>
impl GetCorresponding<VehicleJourney> for IdxSet<Contributor>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Dataset>
impl GetCorresponding<VehicleJourney> for IdxSet<Dataset>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Line>
impl GetCorresponding<VehicleJourney> for IdxSet<Line>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Network>
impl GetCorresponding<VehicleJourney> for IdxSet<Network>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<PhysicalMode>
impl GetCorresponding<VehicleJourney> for IdxSet<PhysicalMode>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Route>
impl GetCorresponding<VehicleJourney> for IdxSet<Route>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<StopArea>
impl GetCorresponding<VehicleJourney> for IdxSet<StopArea>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<StopPoint>
impl GetCorresponding<VehicleJourney> for IdxSet<StopPoint>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<Transfer>
impl GetCorresponding<VehicleJourney> for IdxSet<Transfer>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<VehicleJourney> for IdxSet<VehicleJourney>
impl GetCorresponding<VehicleJourney> for IdxSet<VehicleJourney>
source§fn get_corresponding(&self, _: &Model) -> IdxSet<VehicleJourney>
fn get_corresponding(&self, _: &Model) -> IdxSet<VehicleJourney>
For the given self, returns the set of
corresponding
T
indices.source§impl GetObjectType for VehicleJourney
impl GetObjectType for VehicleJourney
fn get_object_type() -> ObjectType
source§impl Id<Calendar> for VehicleJourney
impl Id<Calendar> for VehicleJourney
source§impl Id<Company> for VehicleJourney
impl Id<Company> for VehicleJourney
source§impl Id<Dataset> for VehicleJourney
impl Id<Dataset> for VehicleJourney
source§impl Id<PhysicalMode> for VehicleJourney
impl Id<PhysicalMode> for VehicleJourney
source§impl Id<Route> for VehicleJourney
impl Id<Route> for VehicleJourney
source§impl Id<VehicleJourney> for VehicleJourney
impl Id<VehicleJourney> for VehicleJourney
source§impl PartialEq<VehicleJourney> for VehicleJourney
impl PartialEq<VehicleJourney> for VehicleJourney
source§fn eq(&self, other: &VehicleJourney) -> bool
fn eq(&self, other: &VehicleJourney) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for VehicleJourney
impl Properties for VehicleJourney
fn properties(&self) -> &PropertiesMap
fn properties_mut(&mut self) -> &mut PropertiesMap
source§impl Serialize for VehicleJourney
impl Serialize for VehicleJourney
source§impl WithId for VehicleJourney
impl WithId for VehicleJourney
impl Eq for VehicleJourney
impl StructuralEq for VehicleJourney
impl StructuralPartialEq for VehicleJourney
Auto Trait Implementations§
impl RefUnwindSafe for VehicleJourney
impl Send for VehicleJourney
impl Sync for VehicleJourney
impl Unpin for VehicleJourney
impl UnwindSafe for VehicleJourney
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