pub struct SafetyZone {
pub zone_id: Option<String>,
pub name: Option<String>,
pub zone_type: Option<SafetyZoneType>,
pub is_active: Option<bool>,
pub robot_inside: Option<bool>,
pub boundary: Option<Polygon2D>,
pub speed_limit_mps: Option<f64>,
pub required_action: Option<String>,
}Expand description
Safety zone definition.
Fields§
§zone_id: Option<String>Zone ID
name: Option<String>Zone name
zone_type: Option<SafetyZoneType>Zone type
is_active: Option<bool>Whether zone is active
robot_inside: Option<bool>Whether robot is inside this zone
boundary: Option<Polygon2D>Zone boundary polygon
speed_limit_mps: Option<f64>Speed limit in this zone (m/s)
required_action: Option<String>Required action when entering
Trait Implementations§
Source§impl Clone for SafetyZone
impl Clone for SafetyZone
Source§fn clone(&self) -> SafetyZone
fn clone(&self) -> SafetyZone
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 SafetyZone
impl Debug for SafetyZone
Source§impl Default for SafetyZone
impl Default for SafetyZone
Source§fn default() -> SafetyZone
fn default() -> SafetyZone
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafetyZone
impl<'de> Deserialize<'de> for SafetyZone
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 SafetyZone
impl RefUnwindSafe for SafetyZone
impl Send for SafetyZone
impl Sync for SafetyZone
impl Unpin for SafetyZone
impl UnwindSafe for SafetyZone
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