square_api_client/models/
job_assignment.rs

1//! Model struct for JobAssignment type
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::JobAssignmentPayType, Money};
6
7/// An object describing a job that a team member is assigned to.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct JobAssignment {
10    /// The title of the job.
11    ///
12    /// Min Length: 1
13    pub job_title: String,
14    /// The current pay type for the job assignment used to calculate the pay amount in a pay
15    /// period.
16    pub pay_type: JobAssignmentPayType,
17    /// The hourly pay rate of the job.
18    pub hourly_rate: Option<Money>,
19    /// The total pay amount for a 12-month period on the job. Set if the job `PayType` is `SALARY`.
20    pub annual_rate: Option<Money>,
21    /// The planned hours per week for the job. Set if the job `PayType` is `SALARY`.
22    pub weekly_hours: Option<i32>,
23}