pub struct SafetyIncident {
pub id: String,
pub entity_id: String,
pub facility_id: String,
pub date: NaiveDate,
pub incident_type: IncidentType,
pub days_away: u32,
pub is_recordable: bool,
pub description: String,
}Expand description
Individual safety incident record.
Fields§
§id: String§entity_id: String§facility_id: String§date: NaiveDate§incident_type: IncidentType§days_away: u32§is_recordable: bool§description: StringTrait Implementations§
Source§impl Clone for SafetyIncident
impl Clone for SafetyIncident
Source§fn clone(&self) -> SafetyIncident
fn clone(&self) -> SafetyIncident
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 SafetyIncident
impl Debug for SafetyIncident
Source§impl<'de> Deserialize<'de> for SafetyIncident
impl<'de> Deserialize<'de> for SafetyIncident
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 SafetyIncident
impl RefUnwindSafe for SafetyIncident
impl Send for SafetyIncident
impl Sync for SafetyIncident
impl Unpin for SafetyIncident
impl UnsafeUnpin for SafetyIncident
impl UnwindSafe for SafetyIncident
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