Enum gusto_api::types::PaymentUnit
source · pub enum PaymentUnit {
Hour,
Month,
Paycheck,
Week,
Year,
Noop,
FallthroughString,
}
Expand description
The unit accompanying the compensation rate. If the employee is an owner, rate should be ‘Paycheck’.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for PaymentUnit
impl Clone for PaymentUnit
source§fn clone(&self) -> PaymentUnit
fn clone(&self) -> PaymentUnit
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 PaymentUnit
impl Debug for PaymentUnit
source§impl Default for PaymentUnit
impl Default for PaymentUnit
source§fn default() -> PaymentUnit
fn default() -> PaymentUnit
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PaymentUnit
impl<'de> Deserialize<'de> for PaymentUnit
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 PaymentUnit
impl Display for PaymentUnit
source§impl JsonSchema for PaymentUnit
impl JsonSchema for PaymentUnit
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<PaymentUnit> for PaymentUnit
impl PartialEq<PaymentUnit> for PaymentUnit
source§fn eq(&self, other: &PaymentUnit) -> bool
fn eq(&self, other: &PaymentUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PaymentUnit
impl Serialize for PaymentUnit
impl StructuralPartialEq for PaymentUnit
Auto Trait Implementations§
impl RefUnwindSafe for PaymentUnit
impl Send for PaymentUnit
impl Sync for PaymentUnit
impl Unpin for PaymentUnit
impl UnwindSafe for PaymentUnit
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