pub struct Compartment {
pub compartment_id: Option<String>,
pub name: Option<String>,
pub status: Option<LoadStatus>,
pub weight_kg: Option<f64>,
pub max_weight_kg: Option<f64>,
pub item_count: Option<u32>,
pub is_open: Option<bool>,
pub is_locked: Option<bool>,
pub temperature_c: Option<f64>,
}Expand description
Compartment/bin information.
Fields§
§compartment_id: Option<String>Compartment ID
name: Option<String>Compartment name
status: Option<LoadStatus>Load status
weight_kg: Option<f64>Current weight in kg
max_weight_kg: Option<f64>Max capacity in kg
item_count: Option<u32>Items in compartment
is_open: Option<bool>Whether compartment is open
is_locked: Option<bool>Whether compartment is locked
temperature_c: Option<f64>Temperature (for climate-controlled)
Trait Implementations§
Source§impl Clone for Compartment
impl Clone for Compartment
Source§fn clone(&self) -> Compartment
fn clone(&self) -> Compartment
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 Compartment
impl Debug for Compartment
Source§impl Default for Compartment
impl Default for Compartment
Source§fn default() -> Compartment
fn default() -> Compartment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Compartment
impl<'de> Deserialize<'de> for Compartment
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 Compartment
impl Serialize for Compartment
Auto Trait Implementations§
impl Freeze for Compartment
impl RefUnwindSafe for Compartment
impl Send for Compartment
impl Sync for Compartment
impl Unpin for Compartment
impl UnwindSafe for Compartment
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