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: StringThe representation of a time off request.
employer_note: StringThe representation of a time off request.
id: i64The 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
sourceimpl Clone for TimeOffRequest
impl Clone for TimeOffRequest
sourcefn clone(&self) -> TimeOffRequest
fn clone(&self) -> TimeOffRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TimeOffRequest
impl Debug for TimeOffRequest
sourceimpl<'de> Deserialize<'de> for TimeOffRequest
impl<'de> Deserialize<'de> for TimeOffRequest
sourcefn 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
sourceimpl JsonSchema for TimeOffRequest
impl JsonSchema for TimeOffRequest
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 moresourceimpl PartialEq<TimeOffRequest> for TimeOffRequest
impl PartialEq<TimeOffRequest> for TimeOffRequest
sourcefn eq(&self, other: &TimeOffRequest) -> bool
fn eq(&self, other: &TimeOffRequest) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more