pub struct LeaveRequest {Show 29 fields
pub id: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub role: Option<String>,
pub role_name: Option<String>,
pub requested_by: Option<String>,
pub requested_by_name: Option<String>,
pub status: Option<Status>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub start_date_start_time: Option<String>,
pub end_date_end_time: Option<String>,
pub start_date_custom_hours: Option<String>,
pub end_date_custom_hours: Option<String>,
pub comments: Option<String>,
pub num_hours: Option<i64>,
pub num_minutes: Option<i64>,
pub leave_policy: Option<String>,
pub leave_type_unique_id: Option<LeaveTypeUniqueId>,
pub policy_display_name: Option<String>,
pub reason_for_leave: Option<String>,
pub processed_at: Option<String>,
pub processed_by: Option<String>,
pub processed_by_name: Option<String>,
pub role_timezone: Option<String>,
pub dates: Option<Vec<Dates>>,
pub is_paid: Option<bool>,
pub managed_by: Option<ManagedBy>,
pub partial_days: Option<Vec<Option<PartialDays>>>,
}
Expand description
Leave request object.
Fields§
§id: Option<String>
Unique identifier of the leave request.
created_at: Option<String>
§updated_at: Option<String>
§role: Option<String>
Unique identifier of the employee who is taking leave.
role_name: Option<String>
§requested_by: Option<String>
§requested_by_name: Option<String>
Unique identifier of the employee who made the request (in most cases this is the same as role).
status: Option<Status>
§start_date: Option<String>
§end_date: Option<String>
§start_date_start_time: Option<String>
§end_date_end_time: Option<String>
§start_date_custom_hours: Option<String>
§end_date_custom_hours: Option<String>
§comments: Option<String>
§num_hours: Option<i64>
§num_minutes: Option<i64>
§leave_policy: Option<String>
§leave_type_unique_id: Option<LeaveTypeUniqueId>
§policy_display_name: Option<String>
§reason_for_leave: Option<String>
§processed_at: Option<String>
§processed_by: Option<String>
Unique identifier of the employee who approved or rejected the request. This may be null.
processed_by_name: Option<String>
§role_timezone: Option<String>
Timezone of the role. This will be work location timezone, or home timezone for employees without a work location.
dates: Option<Vec<Dates>>
§is_paid: Option<bool>
If the leave request is paid this will be TRUE. Otherwise, this will be FALSE.
managed_by: Option<ManagedBy>
This indicates the system that manages the Leave Request. PTO = managed by Rippling’s Time Off app. LEAVES = managed by Rippling’s Leave Management app. TILT = managed by third-party partner Tilt.
partial_days: Option<Vec<Option<PartialDays>>>
Trait Implementations§
Source§impl Clone for LeaveRequest
impl Clone for LeaveRequest
Source§fn clone(&self) -> LeaveRequest
fn clone(&self) -> LeaveRequest
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 LeaveRequest
impl Debug for LeaveRequest
Source§impl<'de> Deserialize<'de> for LeaveRequest
impl<'de> Deserialize<'de> for LeaveRequest
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 Display for LeaveRequest
impl Display for LeaveRequest
Source§impl JsonSchema for LeaveRequest
impl JsonSchema for LeaveRequest
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for LeaveRequest
impl PartialEq for LeaveRequest
Source§impl Serialize for LeaveRequest
impl Serialize for LeaveRequest
Source§impl Tabled for LeaveRequest
impl Tabled for LeaveRequest
impl StructuralPartialEq for LeaveRequest
Auto Trait Implementations§
impl Freeze for LeaveRequest
impl RefUnwindSafe for LeaveRequest
impl Send for LeaveRequest
impl Sync for LeaveRequest
impl Unpin for LeaveRequest
impl UnwindSafe for LeaveRequest
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
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>
Converts
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>
Converts
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