pub struct BenefitEnrollment {Show 14 fields
pub id: String,
pub entity_code: String,
pub employee_id: String,
pub employee_name: String,
pub plan_type: BenefitPlanType,
pub plan_name: String,
pub enrollment_date: NaiveDate,
pub effective_date: NaiveDate,
pub period: String,
pub employee_contribution: Decimal,
pub employer_contribution: Decimal,
pub currency: String,
pub status: BenefitStatus,
pub is_active: bool,
}Expand description
An employee’s enrollment in a benefit plan.
Fields§
§id: StringUnique enrollment identifier
entity_code: StringCompany / entity code
employee_id: StringEmployee ID
employee_name: StringEmployee display name (denormalized)
plan_type: BenefitPlanTypeBenefit plan type
plan_name: StringPlan name (e.g. “Blue Cross PPO”)
enrollment_date: NaiveDateDate enrollment was submitted
effective_date: NaiveDateCoverage effective date
period: StringFiscal period (e.g. “2024-06”)
employee_contribution: DecimalEmployee contribution amount per period
employer_contribution: DecimalEmployer contribution amount per period
currency: StringCurrency code
status: BenefitStatusCurrent enrollment status
is_active: boolWhether enrollment is currently active
Implementations§
Source§impl BenefitEnrollment
impl BenefitEnrollment
Sourcepub fn new(
id: impl Into<String>,
entity_code: impl Into<String>,
employee_id: impl Into<String>,
employee_name: impl Into<String>,
plan_type: BenefitPlanType,
plan_name: impl Into<String>,
enrollment_date: NaiveDate,
effective_date: NaiveDate,
period: impl Into<String>,
employee_contribution: Decimal,
employer_contribution: Decimal,
currency: impl Into<String>,
status: BenefitStatus,
is_active: bool,
) -> Self
pub fn new( id: impl Into<String>, entity_code: impl Into<String>, employee_id: impl Into<String>, employee_name: impl Into<String>, plan_type: BenefitPlanType, plan_name: impl Into<String>, enrollment_date: NaiveDate, effective_date: NaiveDate, period: impl Into<String>, employee_contribution: Decimal, employer_contribution: Decimal, currency: impl Into<String>, status: BenefitStatus, is_active: bool, ) -> Self
Create a new benefit enrollment.
Trait Implementations§
Source§impl Clone for BenefitEnrollment
impl Clone for BenefitEnrollment
Source§fn clone(&self) -> BenefitEnrollment
fn clone(&self) -> BenefitEnrollment
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 BenefitEnrollment
impl Debug for BenefitEnrollment
Source§impl<'de> Deserialize<'de> for BenefitEnrollment
impl<'de> Deserialize<'de> for BenefitEnrollment
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 BenefitEnrollment
impl Serialize for BenefitEnrollment
Source§impl ToNodeProperties for BenefitEnrollment
impl ToNodeProperties for BenefitEnrollment
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 BenefitEnrollment
impl RefUnwindSafe for BenefitEnrollment
impl Send for BenefitEnrollment
impl Sync for BenefitEnrollment
impl Unpin for BenefitEnrollment
impl UnsafeUnpin for BenefitEnrollment
impl UnwindSafe for BenefitEnrollment
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