pub struct Lift {Show 13 fields
pub lift_id: Option<String>,
pub name: Option<String>,
pub state: Option<LiftState>,
pub height_m: Option<f64>,
pub target_height_m: Option<f64>,
pub min_height_m: Option<f64>,
pub max_height_m: Option<f64>,
pub load_kg: Option<f64>,
pub max_load_kg: Option<f64>,
pub velocity_mps: Option<f64>,
pub status: Option<MotorStatus>,
pub at_top: Option<bool>,
pub at_bottom: Option<bool>,
}Expand description
Lift/elevator mechanism.
Fields§
§lift_id: Option<String>Lift ID
name: Option<String>Lift name
state: Option<LiftState>Current state
height_m: Option<f64>Current height in meters
target_height_m: Option<f64>Target height in meters
min_height_m: Option<f64>Minimum height in meters
max_height_m: Option<f64>Maximum height in meters
load_kg: Option<f64>Current load in kg
max_load_kg: Option<f64>Maximum load capacity in kg
velocity_mps: Option<f64>Velocity in m/s
status: Option<MotorStatus>Motor status
at_top: Option<bool>Whether at top limit
at_bottom: Option<bool>Whether at bottom limit
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lift
impl<'de> Deserialize<'de> for Lift
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 Lift
impl RefUnwindSafe for Lift
impl Send for Lift
impl Sync for Lift
impl Unpin for Lift
impl UnwindSafe for Lift
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