#[non_exhaustive]pub struct SpeedReadingInterval {
pub start_polyline_point_index: i32,
pub end_polyline_point_index: i32,
pub speed: Speed,
/* private fields */
}Expand description
Traffic density indicator on a contiguous segment of a path. Given a path with points P_0, P_1, … , P_N (zero-based index), the SpeedReadingInterval defines an interval and describes its traffic using the following categories.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_polyline_point_index: i32The starting index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated.
end_polyline_point_index: i32The ending index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated.
speed: SpeedTraffic speed in this interval.
Implementations§
Source§impl SpeedReadingInterval
impl SpeedReadingInterval
Sourcepub fn set_start_polyline_point_index<T: Into<i32>>(self, v: T) -> Self
pub fn set_start_polyline_point_index<T: Into<i32>>(self, v: T) -> Self
Sets the value of start_polyline_point_index.
§Example
ⓘ
let x = SpeedReadingInterval::new().set_start_polyline_point_index(42);Sourcepub fn set_end_polyline_point_index<T: Into<i32>>(self, v: T) -> Self
pub fn set_end_polyline_point_index<T: Into<i32>>(self, v: T) -> Self
Sets the value of end_polyline_point_index.
§Example
ⓘ
let x = SpeedReadingInterval::new().set_end_polyline_point_index(42);Trait Implementations§
Source§impl Clone for SpeedReadingInterval
impl Clone for SpeedReadingInterval
Source§fn clone(&self) -> SpeedReadingInterval
fn clone(&self) -> SpeedReadingInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpeedReadingInterval
impl Debug for SpeedReadingInterval
Source§impl Default for SpeedReadingInterval
impl Default for SpeedReadingInterval
Source§fn default() -> SpeedReadingInterval
fn default() -> SpeedReadingInterval
Returns the “default value” for a type. Read more
Source§impl Message for SpeedReadingInterval
impl Message for SpeedReadingInterval
Source§impl PartialEq for SpeedReadingInterval
impl PartialEq for SpeedReadingInterval
impl StructuralPartialEq for SpeedReadingInterval
Auto Trait Implementations§
impl Freeze for SpeedReadingInterval
impl RefUnwindSafe for SpeedReadingInterval
impl Send for SpeedReadingInterval
impl Sync for SpeedReadingInterval
impl Unpin for SpeedReadingInterval
impl UnsafeUnpin for SpeedReadingInterval
impl UnwindSafe for SpeedReadingInterval
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