pub struct UnitRate {
pub rate: Money,
pub unit_of_measure: UnitOfMeasure,
pub price_basis_quantity: Option<PriceBasisQuantity>,
pub term_reference: Option<TermReference>,
}Expand description
Service pricing per time/measure unit (cXML <UnitRate>)
Fields§
§rate: MoneyMoney amount of the rate
unit_of_measure: UnitOfMeasureUnit the service is provided in (e.g., hours)
price_basis_quantity: Option<PriceBasisQuantity>Optional price basis quantity (e.g., rate applies per 8 hours)
term_reference: Option<TermReference>Optional rate code/context (e.g., payCode=Overtime)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitRate
impl<'de> Deserialize<'de> for UnitRate
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 UnitRate
impl JsonSchema for UnitRate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for UnitRate
impl RefUnwindSafe for UnitRate
impl Send for UnitRate
impl Sync for UnitRate
impl Unpin for UnitRate
impl UnwindSafe for UnitRate
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