pub struct RackUnit {
pub id: Option<f64>,
pub name: Option<String>,
pub face: Option<Box<RackUnitFace>>,
pub device: Option<Box<BriefDevice>>,
pub occupied: Option<bool>,
pub display: Option<String>,
}Expand description
RackUnit : A rack unit is an abstraction formed by the set (rack, position, face); it does not exist as a row in the database.
Fields§
§id: Option<f64>§name: Option<String>§face: Option<Box<RackUnitFace>>§device: Option<Box<BriefDevice>>§occupied: Option<bool>§display: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RackUnit
impl<'de> Deserialize<'de> for RackUnit
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
impl StructuralPartialEq for RackUnit
Auto Trait Implementations§
impl Freeze for RackUnit
impl RefUnwindSafe for RackUnit
impl Send for RackUnit
impl Sync for RackUnit
impl Unpin for RackUnit
impl UnwindSafe for RackUnit
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