pub struct FunctionalSafety {
pub sil_level: Option<u8>,
pub performance_level: Option<String>,
pub safety_functions: Option<Vec<SafetyFunction>>,
pub last_test: Option<DateTime<Utc>>,
pub diagnostic_coverage: Option<f64>,
pub safe_failure_fraction: Option<f64>,
pub mttf_hours: Option<f64>,
}Expand description
Functional safety status per ISO 61508/13849.
Fields§
§sil_level: Option<u8>Safety Integrity Level (SIL 1-4)
performance_level: Option<String>Performance Level (a-e)
safety_functions: Option<Vec<SafetyFunction>>Safety function status
last_test: Option<DateTime<Utc>>Last safety test timestamp
diagnostic_coverage: Option<f64>Diagnostic coverage (0-100%)
safe_failure_fraction: Option<f64>Safe failure fraction (0-100%)
mttf_hours: Option<f64>Mean Time To Failure (hours)
Implementations§
Trait Implementations§
Source§impl Clone for FunctionalSafety
impl Clone for FunctionalSafety
Source§fn clone(&self) -> FunctionalSafety
fn clone(&self) -> FunctionalSafety
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 FunctionalSafety
impl Debug for FunctionalSafety
Source§impl Default for FunctionalSafety
impl Default for FunctionalSafety
Source§fn default() -> FunctionalSafety
fn default() -> FunctionalSafety
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FunctionalSafety
impl<'de> Deserialize<'de> for FunctionalSafety
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 FunctionalSafety
impl Serialize for FunctionalSafety
Auto Trait Implementations§
impl Freeze for FunctionalSafety
impl RefUnwindSafe for FunctionalSafety
impl Send for FunctionalSafety
impl Sync for FunctionalSafety
impl Unpin for FunctionalSafety
impl UnwindSafe for FunctionalSafety
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