pub struct PayEquityMetric {
pub id: String,
pub entity_id: String,
pub period: NaiveDate,
pub dimension: DiversityDimension,
pub reference_group: String,
pub comparison_group: String,
pub reference_median_salary: Decimal,
pub comparison_median_salary: Decimal,
pub pay_gap_ratio: Decimal,
pub sample_size: u32,
}Expand description
Pay equity metric comparing compensation across groups.
Fields§
§id: String§entity_id: String§period: NaiveDate§dimension: DiversityDimension§reference_group: String§comparison_group: String§reference_median_salary: Decimal§comparison_median_salary: Decimal§pay_gap_ratio: Decimal§sample_size: u32Implementations§
Source§impl PayEquityMetric
impl PayEquityMetric
Sourcepub fn computed_pay_gap_ratio(&self) -> Decimal
pub fn computed_pay_gap_ratio(&self) -> Decimal
Computed pay gap ratio = comparison / reference.
Trait Implementations§
Source§impl Clone for PayEquityMetric
impl Clone for PayEquityMetric
Source§fn clone(&self) -> PayEquityMetric
fn clone(&self) -> PayEquityMetric
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 PayEquityMetric
impl Debug for PayEquityMetric
Source§impl<'de> Deserialize<'de> for PayEquityMetric
impl<'de> Deserialize<'de> for PayEquityMetric
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 PayEquityMetric
impl RefUnwindSafe for PayEquityMetric
impl Send for PayEquityMetric
impl Sync for PayEquityMetric
impl Unpin for PayEquityMetric
impl UnsafeUnpin for PayEquityMetric
impl UnwindSafe for PayEquityMetric
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