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
Hour
Month
Paycheck
Week
Year
Noop
FallthroughString
Implementations
sourceimpl PaymentUnit
impl PaymentUnit
Trait Implementations
sourceimpl Clone for PaymentUnit
impl Clone for PaymentUnit
sourcefn clone(&self) -> PaymentUnit
fn clone(&self) -> PaymentUnit
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 PaymentUnit
impl Debug for PaymentUnit
sourceimpl Default for PaymentUnit
impl Default for PaymentUnit
sourcefn default() -> PaymentUnit
fn default() -> PaymentUnit
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PaymentUnit
impl<'de> Deserialize<'de> for PaymentUnit
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 Display for PaymentUnit
impl Display for PaymentUnit
sourceimpl JsonSchema for PaymentUnit
impl JsonSchema for PaymentUnit
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<PaymentUnit> for PaymentUnit
impl PartialEq<PaymentUnit> for PaymentUnit
sourcefn eq(&self, other: &PaymentUnit) -> bool
fn eq(&self, other: &PaymentUnit) -> bool
sourceimpl 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
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