pub struct ComponentStatus {
pub component_id: Option<String>,
pub name: Option<String>,
pub component_type: Option<String>,
pub health: Option<ComponentHealth>,
pub health_score: Option<f64>,
pub operating_hours: Option<f64>,
pub remaining_life_hours: Option<f64>,
pub last_inspection: Option<DateTime<Utc>>,
pub notes: Option<String>,
}Expand description
Component health status.
Fields§
§component_id: Option<String>Component ID
name: Option<String>Component name
component_type: Option<String>Component type
health: Option<ComponentHealth>Health status
health_score: Option<f64>Health score (0-100)
operating_hours: Option<f64>Operating hours
remaining_life_hours: Option<f64>Remaining useful life (hours)
last_inspection: Option<DateTime<Utc>>Last inspection date
notes: Option<String>Notes
Implementations§
Trait Implementations§
Source§impl Clone for ComponentStatus
impl Clone for ComponentStatus
Source§fn clone(&self) -> ComponentStatus
fn clone(&self) -> ComponentStatus
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 ComponentStatus
impl Debug for ComponentStatus
Source§impl Default for ComponentStatus
impl Default for ComponentStatus
Source§fn default() -> ComponentStatus
fn default() -> ComponentStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComponentStatus
impl<'de> Deserialize<'de> for ComponentStatus
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 ComponentStatus
impl Serialize for ComponentStatus
Auto Trait Implementations§
impl Freeze for ComponentStatus
impl RefUnwindSafe for ComponentStatus
impl Send for ComponentStatus
impl Sync for ComponentStatus
impl Unpin for ComponentStatus
impl UnwindSafe for ComponentStatus
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