pub struct ElevatorInteraction {
pub elevator_id: Option<String>,
pub name: Option<String>,
pub state: Option<ElevatorState>,
pub current_floor: Option<i32>,
pub target_floor: Option<i32>,
pub robot_floor: Option<i32>,
pub robot_inside: Option<bool>,
pub is_reserved: Option<bool>,
pub eta_sec: Option<f64>,
pub wait_time_sec: Option<f64>,
}Expand description
Elevator interaction.
Fields§
§elevator_id: Option<String>Elevator ID
name: Option<String>Elevator name
state: Option<ElevatorState>Interaction state
current_floor: Option<i32>Current floor
target_floor: Option<i32>Target floor
robot_floor: Option<i32>Robot’s floor
robot_inside: Option<bool>Whether robot is in elevator
is_reserved: Option<bool>Whether elevator is reserved
eta_sec: Option<f64>ETA (seconds)
wait_time_sec: Option<f64>Wait time (seconds)
Trait Implementations§
Source§impl Clone for ElevatorInteraction
impl Clone for ElevatorInteraction
Source§fn clone(&self) -> ElevatorInteraction
fn clone(&self) -> ElevatorInteraction
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 ElevatorInteraction
impl Debug for ElevatorInteraction
Source§impl Default for ElevatorInteraction
impl Default for ElevatorInteraction
Source§fn default() -> ElevatorInteraction
fn default() -> ElevatorInteraction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElevatorInteraction
impl<'de> Deserialize<'de> for ElevatorInteraction
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 ElevatorInteraction
impl Serialize for ElevatorInteraction
Source§impl Validate for ElevatorInteraction
impl Validate for ElevatorInteraction
Auto Trait Implementations§
impl Freeze for ElevatorInteraction
impl RefUnwindSafe for ElevatorInteraction
impl Send for ElevatorInteraction
impl Sync for ElevatorInteraction
impl Unpin for ElevatorInteraction
impl UnwindSafe for ElevatorInteraction
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