pub struct WorkforceDiversityMetric {
pub id: String,
pub entity_id: String,
pub period: NaiveDate,
pub dimension: DiversityDimension,
pub level: OrganizationLevel,
pub category: String,
pub headcount: u32,
pub total_headcount: u32,
pub percentage: Decimal,
}Expand description
Workforce diversity metric for a reporting period.
Fields§
§id: String§entity_id: String§period: NaiveDate§dimension: DiversityDimension§level: OrganizationLevel§category: String§headcount: u32§total_headcount: u32§percentage: DecimalImplementations§
Source§impl WorkforceDiversityMetric
impl WorkforceDiversityMetric
Sourcepub fn computed_percentage(&self) -> Decimal
pub fn computed_percentage(&self) -> Decimal
Computed percentage = headcount / total_headcount.
Trait Implementations§
Source§impl Clone for WorkforceDiversityMetric
impl Clone for WorkforceDiversityMetric
Source§fn clone(&self) -> WorkforceDiversityMetric
fn clone(&self) -> WorkforceDiversityMetric
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 WorkforceDiversityMetric
impl Debug for WorkforceDiversityMetric
Source§impl<'de> Deserialize<'de> for WorkforceDiversityMetric
impl<'de> Deserialize<'de> for WorkforceDiversityMetric
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 WorkforceDiversityMetric
impl Serialize for WorkforceDiversityMetric
Source§impl ToNodeProperties for WorkforceDiversityMetric
impl ToNodeProperties for WorkforceDiversityMetric
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 WorkforceDiversityMetric
impl RefUnwindSafe for WorkforceDiversityMetric
impl Send for WorkforceDiversityMetric
impl Sync for WorkforceDiversityMetric
impl Unpin for WorkforceDiversityMetric
impl UnsafeUnpin for WorkforceDiversityMetric
impl UnwindSafe for WorkforceDiversityMetric
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