Struct gusto_api::types::TimeOffRequest
source · pub struct TimeOffRequest {
pub approver: Option<Approver>,
pub days: Option<Days>,
pub employee: Option<TimeOffRequestEmployee>,
pub employee_note: String,
pub employer_note: String,
pub id: i64,
pub initiator: Option<Initiator>,
pub request_type: Option<RequestType>,
pub status: Option<Status>,
}
Expand description
The representation of a time off request.
Fields§
§approver: Option<Approver>
This value will be null if the request has not been approved.
days: Option<Days>
The representation of a time off request.
employee: Option<TimeOffRequestEmployee>
The representation of a time off request.
employee_note: String
The representation of a time off request.
employer_note: String
The representation of a time off request.
id: i64
The representation of a time off request.
initiator: Option<Initiator>
§request_type: Option<RequestType>
The representation of a time off request.
status: Option<Status>
The representation of a time off request.
Trait Implementations§
source§impl Clone for TimeOffRequest
impl Clone for TimeOffRequest
source§fn clone(&self) -> TimeOffRequest
fn clone(&self) -> TimeOffRequest
Returns a copy 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 TimeOffRequest
impl Debug for TimeOffRequest
source§impl<'de> Deserialize<'de> for TimeOffRequest
impl<'de> Deserialize<'de> for TimeOffRequest
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 JsonSchema for TimeOffRequest
impl JsonSchema for TimeOffRequest
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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<TimeOffRequest> for TimeOffRequest
impl PartialEq<TimeOffRequest> for TimeOffRequest
source§fn eq(&self, other: &TimeOffRequest) -> bool
fn eq(&self, other: &TimeOffRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TimeOffRequest
impl Serialize for TimeOffRequest
impl StructuralPartialEq for TimeOffRequest
Auto Trait Implementations§
impl RefUnwindSafe for TimeOffRequest
impl Send for TimeOffRequest
impl Sync for TimeOffRequest
impl Unpin for TimeOffRequest
impl UnwindSafe for TimeOffRequest
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