pub struct TimeEntry {Show 22 fields
pub id: String,
pub created_at: String,
pub updated_at: String,
pub worker_id: String,
pub worker: Option<Worker>,
pub start_time: Option<String>,
pub end_time: Option<String>,
pub comments: Option<Vec<TimeEntryComment>>,
pub job_shifts: Option<Vec<JobShift>>,
pub breaks: Option<Vec<Break>>,
pub premiums: Option<Vec<Premiums>>,
pub piece_rate_premiums: Option<Vec<PieceRatePremiums>>,
pub segments: Option<Vec<Segments>>,
pub time_entry_summary: Option<TimeEntrySummary>,
pub time_card_id: Option<String>,
pub time_card: Option<TimeCard>,
pub tags: Option<Vec<String>>,
pub idempotency_key: Option<String>,
pub create_extra_hours_run: Option<bool>,
pub status: Option<TimeEntryStatus>,
pub pay_period: Option<PayPeriod>,
pub shift_input_values: Option<Vec<ShiftInputValue>>,
}
Expand description
TimeEntry.
Fields§
§id: String
Identifier field
created_at: String
Record creation date
updated_at: String
Record update date
worker_id: String
The ID of the worker associated with the time entry.
worker: Option<Worker>
The worker associated with the time entry.
Expandable field
start_time: Option<String>
The start time of the time entry.
end_time: Option<String>
The end time of the time entry.
comments: Option<Vec<TimeEntryComment>>
The comments associated with the time entry.
job_shifts: Option<Vec<JobShift>>
The job shifts worked during the time entry.
breaks: Option<Vec<Break>>
The breaks taken during the time entry.
The premiums earned during the time entry.
The piece-rate premiums earned during the time entry.
segments: Option<Vec<Segments>>
The pay rates for each segment of the time entry.
time_entry_summary: Option<TimeEntrySummary>
A summary of the time entry.
time_card_id: Option<String>
The ID of the time card associated with the time entry.
time_card: Option<TimeCard>
The time card associated with the time entry.
Expandable field
The tags associated with the time entry.
idempotency_key: Option<String>
The unique key of the time entry in an outside system. If set, no other time entry with the same key can be created.
create_extra_hours_run: Option<bool>
Whether the time entry should create an extra hours run.
status: Option<TimeEntryStatus>
The status of the time entry.
pay_period: Option<PayPeriod>
The pay period associated with the time card.
shift_input_values: Option<Vec<ShiftInputValue>>
Arbitrary shift inputs collected on the time entry
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeEntry
impl<'de> Deserialize<'de> for TimeEntry
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 TimeEntry
impl JsonSchema for TimeEntry
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 TimeEntry
Auto Trait Implementations§
impl Freeze for TimeEntry
impl RefUnwindSafe for TimeEntry
impl Send for TimeEntry
impl Sync for TimeEntry
impl Unpin for TimeEntry
impl UnwindSafe for TimeEntry
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.