pub struct TrafficSpeedBand {
pub link_id: u64,
pub road_name: String,
pub road_category: RoadCategory,
pub speed_band: u8,
pub min_speed: u16,
pub max_speed: u16,
pub start_lon: f64,
pub start_lat: f64,
pub end_lon: f64,
pub end_lat: f64,
}Fields§
§link_id: u64Numeric identifier of the road link.
road_name: StringName of the road.
road_category: RoadCategoryClassification of the road carrying the traffic-speed reading.
speed_band: u8Speed-band number assigned to the road link.
min_speed: u16Lower speed bound in kilometres per hour.
max_speed: u16Upper speed bound in kilometres per hour.
start_lon: f64Longitude of the road link’s start point.
start_lat: f64Latitude of the road link’s start point.
end_lon: f64Longitude of the road link’s end point.
end_lat: f64Latitude of the road link’s end point.
Trait Implementations§
Source§impl Clone for TrafficSpeedBand
impl Clone for TrafficSpeedBand
Source§fn clone(&self) -> TrafficSpeedBand
fn clone(&self) -> TrafficSpeedBand
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 TrafficSpeedBand
impl Debug for TrafficSpeedBand
Source§impl<'de> Deserialize<'de> for TrafficSpeedBand
impl<'de> Deserialize<'de> for TrafficSpeedBand
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 TrafficSpeedBand
impl PartialEq for TrafficSpeedBand
Source§impl Serialize for TrafficSpeedBand
impl Serialize for TrafficSpeedBand
impl StructuralPartialEq for TrafficSpeedBand
Auto Trait Implementations§
impl Freeze for TrafficSpeedBand
impl RefUnwindSafe for TrafficSpeedBand
impl Send for TrafficSpeedBand
impl Sync for TrafficSpeedBand
impl Unpin for TrafficSpeedBand
impl UnsafeUnpin for TrafficSpeedBand
impl UnwindSafe for TrafficSpeedBand
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