pub struct TrafficContext {
pub level: Option<String>,
pub congestion_score: Option<f64>,
pub active_vehicles: Option<u32>,
pub blocked_paths: Option<u32>,
pub avg_speed_mps: Option<f64>,
}Expand description
Traffic-related context (for facility/warehouse traffic).
Fields§
§level: Option<String>Current traffic level (low, medium, high)
congestion_score: Option<f64>Congestion score (0-100)
active_vehicles: Option<u32>Active vehicles/robots in area
blocked_paths: Option<u32>Blocked paths count
avg_speed_mps: Option<f64>Average speed in area (m/s)
Trait Implementations§
Source§impl Clone for TrafficContext
impl Clone for TrafficContext
Source§fn clone(&self) -> TrafficContext
fn clone(&self) -> TrafficContext
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 TrafficContext
impl Debug for TrafficContext
Source§impl Default for TrafficContext
impl Default for TrafficContext
Source§fn default() -> TrafficContext
fn default() -> TrafficContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrafficContext
impl<'de> Deserialize<'de> for TrafficContext
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
Auto Trait Implementations§
impl Freeze for TrafficContext
impl RefUnwindSafe for TrafficContext
impl Send for TrafficContext
impl Sync for TrafficContext
impl Unpin for TrafficContext
impl UnwindSafe for TrafficContext
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