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
Source§impl Serialize for SafetyIncident
impl Serialize for SafetyIncident
Source§impl ToNodeProperties for SafetyIncident
impl ToNodeProperties for SafetyIncident
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g.
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g.
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.
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