pub struct Employee {Show 29 fields
pub id: Option<String>,
pub user_id: Option<String>,
pub name: Option<String>,
pub preferred_first_name: Option<String>,
pub preferred_last_name: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub employment_type: Option<EmploymentType>,
pub title: Option<String>,
pub gender: Option<Gender>,
pub identified_gender: Option<IdentifiedGender>,
pub department: Option<String>,
pub work_location: Option<Address>,
pub worklocation_nickname: Option<String>,
pub spoke_id: Option<String>,
pub end_date: Option<String>,
pub role_state: Option<RoleState>,
pub work_email: Option<String>,
pub manager: Option<String>,
pub custom_fields: Option<CustomField>,
pub is_international: Option<bool>,
pub is_manager: Option<bool>,
pub work_schedule: Option<Value>,
pub is_remote: Option<bool>,
pub employee_number: Option<String>,
pub level: Option<String>,
pub teams: Option<Vec<Value>>,
pub photo: Option<String>,
pub small_photo: Option<String>,
}
Expand description
An employee model object.
Fields§
§id: Option<String>
This is the unique role ID of the employee. A role ID exists per 1 and only 1 company.
user_id: Option<String>
This is the unique user ID of the employee. A userID can span across 1 or many companies.
name: Option<String>
Full name of the employee
preferred_first_name: Option<String>
§preferred_last_name: Option<String>
§first_name: Option<String>
First name of the employee
last_name: Option<String>
Last name of the employee
employment_type: Option<EmploymentType>
An ENUM of employment type
title: Option<String>
The employee’s work title
gender: Option<Gender>
The employee’s gender
identified_gender: Option<IdentifiedGender>
The employee’s identified gender
department: Option<String>
The employee’s department name
work_location: Option<Address>
An address object as stored within Rippling.
worklocation_nickname: Option<String>
The work location nickname
spoke_id: Option<String>
§end_date: Option<String>
The employee’s end date
role_state: Option<RoleState>
The employee’s role status - roleState meanings:
INIT: An initial record of an individual. An offer has not been made and they have not started working at the company.
HIRED: An offer has been made but they have not accepted or started yet.
ACCEPTED: An offer has been made and they have accepted, but they have not started yet.
ACTIVE: The employee currently works at the company and their start date is today or in the past.
TERMINATED: The employee is no longer active.
work_email: Option<String>
The employee’s work email
manager: Option<String>
The unique identifier of the employee’s manager. This value can be null.
custom_fields: Option<CustomField>
custom_fields.
is_international: Option<bool>
Whether the employee is an international employee or not.
is_manager: Option<bool>
Whether the employee is a manger
work_schedule: Option<Value>
The employee’s weekly work schedule
is_remote: Option<bool>
Whether the employee’s job is remote
employee_number: Option<String>
This indicates the sequential employee number within their company. This number continues to grow as each employee is onboarded. i.e if you are the 65th employee to join the company with 32 active employees, the employeeNumber would be 65.
level: Option<String>
The level of the employee
teams: Option<Vec<Value>>
An array of the teams that the employee is on
photo: Option<String>
The photo of the employee stored in Rippling
small_photo: Option<String>
The small photo of the employee stored in Rippling
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Employee
impl<'de> Deserialize<'de> for Employee
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>,
Source§impl JsonSchema for Employee
impl JsonSchema for Employee
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreimpl StructuralPartialEq for Employee
Auto Trait Implementations§
impl Freeze for Employee
impl RefUnwindSafe for Employee
impl Send for Employee
impl Sync for Employee
impl Unpin for Employee
impl UnwindSafe for Employee
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more