Struct transit_model::objects::PhysicalMode
source · pub struct PhysicalMode {
pub id: String,
pub name: String,
pub co2_emission: Option<f32>,
}
Fields§
§id: String
§name: String
§co2_emission: Option<f32>
Trait Implementations§
source§impl Clone for PhysicalMode
impl Clone for PhysicalMode
source§fn clone(&self) -> PhysicalMode
fn clone(&self) -> PhysicalMode
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 Debug for PhysicalMode
impl Debug for PhysicalMode
source§impl Default for PhysicalMode
impl Default for PhysicalMode
source§impl<'de> Deserialize<'de> for PhysicalMode
impl<'de> Deserialize<'de> for PhysicalMode
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<PhysicalMode> for IdxSet<Calendar>
impl GetCorresponding<PhysicalMode> for IdxSet<Calendar>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<CommercialMode>
impl GetCorresponding<PhysicalMode> for IdxSet<CommercialMode>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Company>
impl GetCorresponding<PhysicalMode> for IdxSet<Company>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Contributor>
impl GetCorresponding<PhysicalMode> for IdxSet<Contributor>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Dataset>
impl GetCorresponding<PhysicalMode> for IdxSet<Dataset>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Line>
impl GetCorresponding<PhysicalMode> for IdxSet<Line>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Network>
impl GetCorresponding<PhysicalMode> for IdxSet<Network>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<PhysicalMode>
impl GetCorresponding<PhysicalMode> for IdxSet<PhysicalMode>
source§fn get_corresponding(&self, _: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, _: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Route>
impl GetCorresponding<PhysicalMode> for IdxSet<Route>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<StopArea>
impl GetCorresponding<PhysicalMode> for IdxSet<StopArea>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<StopPoint>
impl GetCorresponding<PhysicalMode> for IdxSet<StopPoint>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<Transfer>
impl GetCorresponding<PhysicalMode> for IdxSet<Transfer>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl GetCorresponding<PhysicalMode> for IdxSet<VehicleJourney>
impl GetCorresponding<PhysicalMode> for IdxSet<VehicleJourney>
source§fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
fn get_corresponding(&self, pt_objects: &Model) -> IdxSet<PhysicalMode>
For the given self, returns the set of
corresponding
T
indices.source§impl Hash for PhysicalMode
impl Hash for PhysicalMode
source§impl Id<PhysicalMode> for PhysicalMode
impl Id<PhysicalMode> for PhysicalMode
source§impl Id<PhysicalMode> for VehicleJourney
impl Id<PhysicalMode> for VehicleJourney
source§impl Ord for PhysicalMode
impl Ord for PhysicalMode
source§fn cmp(&self, other: &PhysicalMode) -> Ordering
fn cmp(&self, other: &PhysicalMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PhysicalMode> for PhysicalMode
impl PartialEq<PhysicalMode> for PhysicalMode
source§fn eq(&self, other: &PhysicalMode) -> bool
fn eq(&self, other: &PhysicalMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PhysicalMode> for PhysicalMode
impl PartialOrd<PhysicalMode> for PhysicalMode
source§fn partial_cmp(&self, other: &PhysicalMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PhysicalMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PhysicalMode
impl Serialize for PhysicalMode
source§impl WithId for PhysicalMode
impl WithId for PhysicalMode
impl Eq for PhysicalMode
Auto Trait Implementations§
impl RefUnwindSafe for PhysicalMode
impl Send for PhysicalMode
impl Sync for PhysicalMode
impl Unpin for PhysicalMode
impl UnwindSafe for PhysicalMode
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