pub struct DoorInteraction {
pub door_id: Option<String>,
pub name: Option<String>,
pub state: Option<DoorState>,
pub position: Option<Position2D>,
pub distance_m: Option<f64>,
pub is_waiting: Option<bool>,
pub open_requested: Option<bool>,
pub wait_time_sec: Option<f64>,
pub last_change: Option<DateTime<Utc>>,
}Expand description
Door interaction.
Fields§
§door_id: Option<String>Door ID
name: Option<String>Door name
state: Option<DoorState>Door state
position: Option<Position2D>Door position
distance_m: Option<f64>Distance to door (m)
is_waiting: Option<bool>Whether waiting for door
open_requested: Option<bool>Whether robot requested open
wait_time_sec: Option<f64>Wait time (seconds)
last_change: Option<DateTime<Utc>>Last state change
Implementations§
Trait Implementations§
Source§impl Clone for DoorInteraction
impl Clone for DoorInteraction
Source§fn clone(&self) -> DoorInteraction
fn clone(&self) -> DoorInteraction
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 DoorInteraction
impl Debug for DoorInteraction
Source§impl Default for DoorInteraction
impl Default for DoorInteraction
Source§fn default() -> DoorInteraction
fn default() -> DoorInteraction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DoorInteraction
impl<'de> Deserialize<'de> for DoorInteraction
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 Serialize for DoorInteraction
impl Serialize for DoorInteraction
Auto Trait Implementations§
impl Freeze for DoorInteraction
impl RefUnwindSafe for DoorInteraction
impl Send for DoorInteraction
impl Sync for DoorInteraction
impl Unpin for DoorInteraction
impl UnwindSafe for DoorInteraction
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